From bc2dafb595f154a4e02310b0bb9cf78708e1e812 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 fda366fa5c5..a393ec01ee9 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 e6d534fdfbb..56c2b1dd009 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: