summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2017-07-19 23:21:35 +0900
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-20 15:52:21 +0200
commit85eac9b404f7db255501f19ebbd56c75c4260613 (patch)
tree96d4cad369a80a36cc9c0968e431ec1d35b25abc /sw
parent5b5995c05a17b1b16617ef8b477a657ce2a9406c (diff)
sw: std::copy_if is now available
Change-Id: I78c4832ba966609fd9e2fa70b1addf4b640692fb Reviewed-on: https://gerrit.libreoffice.org/40185 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/writerhelper.cxx17
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;
}