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 git-svn-id: svn://10.0.0.236/trunk@108471 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1570,7 +1570,7 @@ PresShell::Init(nsIDocument* aDocument,
|
||||
nsresult result = nsComponentManager::CreateInstance(kFrameSelectionCID, nsnull,
|
||||
NS_GET_IID(nsIFrameSelection),
|
||||
getter_AddRefs(mSelection));
|
||||
if (!NS_SUCCEEDED(result))
|
||||
if (NS_FAILED(result))
|
||||
return result;
|
||||
|
||||
// Create and initialize the frame manager
|
||||
@@ -1584,7 +1584,7 @@ PresShell::Init(nsIDocument* aDocument,
|
||||
}
|
||||
|
||||
result = mSelection->Init((nsIFocusTracker *) this, nsnull);
|
||||
if (!NS_SUCCEEDED(result))
|
||||
if (NS_FAILED(result))
|
||||
return result;
|
||||
// Important: this has to happen after the selection has been set up
|
||||
#ifdef SHOW_CARET
|
||||
|
||||
Reference in New Issue
Block a user