mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bugzilla Bug 110080 change !NS_SUCCEEDED(status) to NS_FAILED(status)
r=axel@pike.org sr=kin
This commit is contained in:
parent
f371182171
commit
8eccbe5de9
@ -1266,7 +1266,7 @@ void CBrowserView::OnToolsRemoveGHPage()
|
||||
return;
|
||||
}
|
||||
nsCOMPtr<nsIBrowserHistory> myHistory = do_QueryInterface(myGHistory, &rv);
|
||||
if(!NS_SUCCEEDED(rv)) {
|
||||
if(NS_FAILED(rv)) {
|
||||
WriteToOutputFile("Could not get the history object.\r\n");
|
||||
AfxMessageBox("Could not get the global history object.");
|
||||
return;
|
||||
|
@ -969,7 +969,7 @@ void
|
||||
nsCOMPtr<T>::assign_from_helper( const nsCOMPtr_helper& helper, const nsIID& aIID )
|
||||
{
|
||||
T* newRawPtr;
|
||||
if ( !NS_SUCCEEDED( helper(aIID, NS_REINTERPRET_CAST(void**, &newRawPtr)) ) )
|
||||
if ( NS_FAILED( helper(aIID, NS_REINTERPRET_CAST(void**, &newRawPtr)) ) )
|
||||
newRawPtr = 0;
|
||||
assign_assuming_AddRef(newRawPtr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user