зеркало из https://github.com/mozilla/pjs.git
Bugzilla Bug 110080 change !NS_SUCCEEDED(status) to NS_FAILED(status)
s/!NS_SUCCEEDED/NS_FAILED/g;s/!NS_FAILED/NS_SUCCEEDED/g; r=dougt sr=hewitt
This commit is contained in:
Родитель
1431f135a4
Коммит
a5514930cd
|
@ -231,7 +231,7 @@ nsSHistory::GetTransactionAtIndex(PRInt32 aIndex, nsISHTransaction ** aResult)
|
|||
nsCOMPtr<nsISHTransaction> tempPtr;
|
||||
|
||||
rv = GetRootTransaction(getter_AddRefs(tempPtr));
|
||||
if (!NS_SUCCEEDED(rv) || !tempPtr)
|
||||
if (NS_FAILED(rv) || !tempPtr)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
while(1) {
|
||||
|
@ -274,7 +274,7 @@ nsSHistory::PrintHistory()
|
|||
break;
|
||||
nsCOMPtr<nsISHEntry> entry;
|
||||
rv = txn->GetSHEntry(getter_AddRefs(entry));
|
||||
if (!NS_SUCCEEDED(rv) && !entry)
|
||||
if (NS_FAILED(rv) && !entry)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
nsCOMPtr<nsILayoutHistoryState> layoutHistoryState;
|
||||
|
@ -826,7 +826,7 @@ nsSHistory::GetSHistoryEnumerator(nsISimpleEnumerator** aEnumerator)
|
|||
|
||||
NS_ENSURE_ARG_POINTER(aEnumerator);
|
||||
nsSHEnumerator * iterator = new nsSHEnumerator(this);
|
||||
if (iterator && !NS_SUCCEEDED(status = CallQueryInterface(iterator, aEnumerator)))
|
||||
if (iterator && NS_FAILED(status = CallQueryInterface(iterator, aEnumerator)))
|
||||
delete iterator;
|
||||
return status;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче