mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Bug 1279998
- Remove NSCAP_FEATURE_TEST_NONNULL_QUERY_SUCCEEDS. r=froydnj
MozReview-Commit-ID: LbT6922qlHQ --HG-- extra : rebase_source : f59298236c3905c4c92d261ffe93847584d24bb6
This commit is contained in:
parent
39b37c03c9
commit
e5fea6eaa1
@ -12,10 +12,6 @@ nsQueryInterface::operator()(const nsIID& aIID, void** aAnswer) const
|
||||
nsresult status;
|
||||
if (mRawPtr) {
|
||||
status = mRawPtr->QueryInterface(aIID, aAnswer);
|
||||
#ifdef NSCAP_FEATURE_TEST_NONNULL_QUERY_SUCCEEDS
|
||||
NS_ASSERTION(NS_SUCCEEDED(status),
|
||||
"interface not found---were you expecting that?");
|
||||
#endif
|
||||
} else {
|
||||
status = NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
@ -29,10 +25,6 @@ nsQueryInterfaceWithError::operator()(const nsIID& aIID, void** aAnswer) const
|
||||
nsresult status;
|
||||
if (mRawPtr) {
|
||||
status = mRawPtr->QueryInterface(aIID, aAnswer);
|
||||
#ifdef NSCAP_FEATURE_TEST_NONNULL_QUERY_SUCCEEDS
|
||||
NS_ASSERTION(NS_SUCCEEDED(status),
|
||||
"interface not found---were you expecting that?");
|
||||
#endif
|
||||
} else {
|
||||
status = NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
@ -56,7 +56,6 @@
|
||||
#ifdef DEBUG
|
||||
#define NSCAP_FEATURE_TEST_DONTQUERY_CASES
|
||||
#undef NSCAP_FEATURE_USE_BASE
|
||||
//#define NSCAP_FEATURE_TEST_NONNULL_QUERY_SUCCEEDS
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
Loading…
Reference in New Issue
Block a user