diff options
author | Nathan Yee <ny.nathan.yee@gmail.com> | 2015-01-01 10:50:39 -0800 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-05 09:34:08 +0000 |
commit | a509a8d9951a0c31bea0f4ff8942720cad8b6e7f (patch) | |
tree | d4494eb4ec45284869a373316a135ee1b181ac64 /sw/source/core/docnode/ndcopy.cxx | |
parent | df5fa4082cfb17c5d5be6678995689485df6d429 (diff) |
Resolves: fdo#87003 Kill BOOST_FOREACH on master
use C++11s range-based for() loops instead
Conflicts:
sd/source/filter/eppt/pptx-epptooxml.cxx
Change-Id: I0868eb345932c05b7e40b087035da252b99bf0b9
Reviewed-on: https://gerrit.libreoffice.org/13714
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/core/docnode/ndcopy.cxx')
-rw-r--r-- | sw/source/core/docnode/ndcopy.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/docnode/ndcopy.cxx b/sw/source/core/docnode/ndcopy.cxx index b26299ccb5f9..04f697aaf101 100644 --- a/sw/source/core/docnode/ndcopy.cxx +++ b/sw/source/core/docnode/ndcopy.cxx @@ -28,7 +28,6 @@ #include <ddefld.hxx> #include <swddetbl.hxx> #include <svtools/fmtfield.hxx> -#include <boost/foreach.hpp> #include <vector> @@ -191,7 +190,7 @@ static void lcl_CopyTblBox( SwTableBox* pBox, _CopyTable* pCT ) { _CopyTable aPara( *pCT ); aPara.pInsBox = pNewBox; - BOOST_FOREACH( const SwTableLine* pLine, pBox->GetTabLines() ) + for( const SwTableLine* pLine : pBox->GetTabLines() ) lcl_CopyTblLine( pLine, &aPara ); } else if( pNewBox->IsInHeadline( &pCT->pTblNd->GetTable() )) @@ -309,7 +308,7 @@ SwTableNode* SwTableNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const _MapTblFrmFmts aMapArr; _CopyTable aPara( pDoc, aMapArr, GetIndex(), *pTblNd, &GetTable() ); - BOOST_FOREACH(const SwTableLine* pLine, GetTable().GetTabLines() ) + for( const SwTableLine* pLine : GetTable().GetTabLines() ) lcl_CopyTblLine( pLine, &aPara ); if( pDDEType ) |