A better fix for Mac build bustage

This commit is contained in:
cmanske%netscape.com 1999-11-13 19:27:59 +00:00
parent c4e0e74770
commit 1d625cd307
2 changed files with 4 additions and 6 deletions

View File

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

View File

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