From 1d625cd3071d2ab137ebb74ac99c26f70afb5e65 Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Sat, 13 Nov 1999 19:27:59 +0000 Subject: [PATCH] A better fix for Mac build bustage --- editor/base/nsEditorShell.cpp | 5 ++--- editor/composer/src/nsEditorShell.cpp | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/editor/base/nsEditorShell.cpp b/editor/base/nsEditorShell.cpp index fb19d1194be1..6c6879c208b5 100644 --- a/editor/base/nsEditorShell.cpp +++ b/editor/base/nsEditorShell.cpp @@ -1723,9 +1723,8 @@ nsEditorShell::UpdateWindowTitle() if (diskDoc) { // find out if the doc already has a fileSpec associated with it. - nsFileSpec docFileSpec; - PRBool noFileSpec = (diskDoc->GetFileSpec(docFileSpec) == NS_ERROR_NOT_INITIALIZED); - if ((docFileSpec != nsnull) && !noFileSpec) + nsFileSpec docFileSpec; + if (NS_SUCCEEDED(diskDoc->GetFileSpec(docFileSpec))) { char *name = docFileSpec.GetLeafName(); if (name) diff --git a/editor/composer/src/nsEditorShell.cpp b/editor/composer/src/nsEditorShell.cpp index fb19d1194be1..6c6879c208b5 100644 --- a/editor/composer/src/nsEditorShell.cpp +++ b/editor/composer/src/nsEditorShell.cpp @@ -1723,9 +1723,8 @@ nsEditorShell::UpdateWindowTitle() if (diskDoc) { // find out if the doc already has a fileSpec associated with it. - nsFileSpec docFileSpec; - PRBool noFileSpec = (diskDoc->GetFileSpec(docFileSpec) == NS_ERROR_NOT_INITIALIZED); - if ((docFileSpec != nsnull) && !noFileSpec) + nsFileSpec docFileSpec; + if (NS_SUCCEEDED(diskDoc->GetFileSpec(docFileSpec))) { char *name = docFileSpec.GetLeafName(); if (name)