From 6bc87edd8738ba0fc7762cb3abb4b48b631e82dc Mon Sep 17 00:00:00 2001 From: "brade%netscape.com" Date: Wed, 3 Mar 1999 15:35:49 +0000 Subject: [PATCH] reduce Macintosh compiler warnings --- layout/base/nsFrameTraversal.cpp | 2 +- layout/base/src/nsFrameTraversal.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/base/nsFrameTraversal.cpp b/layout/base/nsFrameTraversal.cpp index e13e2b7edba..dded994d471 100644 --- a/layout/base/nsFrameTraversal.cpp +++ b/layout/base/nsFrameTraversal.cpp @@ -307,7 +307,7 @@ nsLeafIterator::Prev() nsIFrame * grandFchild; if (NS_SUCCEEDED(grandParent->FirstChild(nsnull,&grandFchild)) && grandFchild){ nsFrameList list(grandFchild); - if (result = list.GetPrevSiblingFor(parent) ){ + if (nsnull != (result = list.GetPrevSiblingFor(parent)) ){ parent = result; while(NS_SUCCEEDED(parent->FirstChild(nsnull,&result)) && result){ parent = result; diff --git a/layout/base/src/nsFrameTraversal.cpp b/layout/base/src/nsFrameTraversal.cpp index e13e2b7edba..dded994d471 100644 --- a/layout/base/src/nsFrameTraversal.cpp +++ b/layout/base/src/nsFrameTraversal.cpp @@ -307,7 +307,7 @@ nsLeafIterator::Prev() nsIFrame * grandFchild; if (NS_SUCCEEDED(grandParent->FirstChild(nsnull,&grandFchild)) && grandFchild){ nsFrameList list(grandFchild); - if (result = list.GetPrevSiblingFor(parent) ){ + if (nsnull != (result = list.GetPrevSiblingFor(parent)) ){ parent = result; while(NS_SUCCEEDED(parent->FirstChild(nsnull,&result)) && result){ parent = result;