Bugzilla Bug 110080 change !NS_SUCCEEDED(status) to NS_FAILED(status)

r=axel@pike.org sr=kin
This commit is contained in:
timeless%mac.com 2001-11-22 15:12:51 +00:00
parent f371182171
commit 8eccbe5de9
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}