diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/writerhelper.cxx | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sw/source/filter/ww8/writerhelper.cxx b/sw/source/filter/ww8/writerhelper.cxx index 6c0fda0756ac..e184f089c5e4 100644 --- a/sw/source/filter/ww8/writerhelper.cxx +++ b/sw/source/filter/ww8/writerhelper.cxx @@ -60,21 +60,6 @@ using namespace com::sun::star; namespace { - /* - Stroustroup forgets copy_if, See C++ Programming language Chp 18, pg 530 - */ - template <typename In , typename Out , typename Pred> - Out my_copy_if(In first, In last, Out res, Pred p) - { - while (first != last) - { - if (p(*first)) - *res = *first; - ++first; - } - return res; - } - // #i98791# - adjust sorting // Utility to sort SwTextFormatColl's by their assigned outline style list level class outlinecmp @@ -549,7 +534,7 @@ namespace sw ww8::Frames GetFramesInNode(const ww8::Frames &rFrames, const SwNode &rNode) { ww8::Frames aRet; - my_copy_if(rFrames.begin(), rFrames.end(), + std::copy_if(rFrames.begin(), rFrames.end(), std::back_inserter(aRet), anchoredto(rNode.GetIndex())); return aRet; } |