зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1003921: Use NS_WARN_IF_FALSE instead of NS_WARN_IF to fix warning in mozStorageAsyncStatementExecution.cpp. r=mak
This commit is contained in:
Родитель
18421a4364
Коммит
ceb0c0ab11
|
@ -19,6 +19,7 @@
|
|||
#include "mozStorageStatementData.h"
|
||||
#include "mozStorageAsyncStatementExecution.h"
|
||||
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
@ -453,7 +454,9 @@ AsyncExecuteStatements::notifyComplete()
|
|||
}
|
||||
}
|
||||
else {
|
||||
NS_WARN_IF(NS_FAILED(mConnection->rollbackTransactionInternal(mNativeConnection)));
|
||||
DebugOnly<nsresult> rv =
|
||||
mConnection->rollbackTransactionInternal(mNativeConnection);
|
||||
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Transaction failed to rollback");
|
||||
}
|
||||
mHasTransaction = false;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче