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: