From f93df3a67a6e9d0b6bda3266fcb2992a08858e0e Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Tue, 12 Nov 2002 20:35:59 +0000 Subject: [PATCH] fix windows linker bustage --- editor/libeditor/base/nsEditorUtils.cpp | 8 -------- editor/libeditor/base/nsEditorUtils.h | 7 ++++++- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/editor/libeditor/base/nsEditorUtils.cpp b/editor/libeditor/base/nsEditorUtils.cpp index fda366fa5c58..a393ec01ee9e 100644 --- a/editor/libeditor/base/nsEditorUtils.cpp +++ b/editor/libeditor/base/nsEditorUtils.cpp @@ -138,14 +138,6 @@ nsDOMIterator::ForEach(nsDomIterFunctor& functor) const } } -inline nsresult -nsDOMIterator::MakeList(nsBoolDomIterFunctor& functor, - nsCOMArray& outArrayOfNodes) const -{ - NS_PRECONDITION(outArrayOfNodes.Count() == 0, "Calling MakeList on non-empty list!"); - return AppendList(functor, outArrayOfNodes); -} - nsresult nsDOMIterator::AppendList(nsBoolDomIterFunctor& functor, nsCOMArray& arrayOfNodes) const diff --git a/editor/libeditor/base/nsEditorUtils.h b/editor/libeditor/base/nsEditorUtils.h index e6d534fdfbb7..56c2b1dd0099 100644 --- a/editor/libeditor/base/nsEditorUtils.h +++ b/editor/libeditor/base/nsEditorUtils.h @@ -212,7 +212,12 @@ class nsDOMIterator nsresult Init(nsIDOMNode* aNode); void ForEach(nsDomIterFunctor& functor) const; nsresult MakeList(nsBoolDomIterFunctor& functor, - nsCOMArray& outArrayOfNodes) const; + nsCOMArray& outArrayOfNodes) const + { + NS_PRECONDITION(outArrayOfNodes.Count() == 0, + "Calling MakeList on non-empty list!"); + return AppendList(functor, outArrayOfNodes); + }; nsresult AppendList(nsBoolDomIterFunctor& functor, nsCOMArray& arrayOfNodes) const; protected: