summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/DocumentSettingManager.cxx
diff options
context:
space:
mode:
authorMario J. Rugiero <mrugiero@gmail.com>2015-11-10 23:16:03 -0300
committerNoel Grandin <noelgrandin@gmail.com>2015-11-11 06:50:34 +0000
commit2ce9e4be4a438203382cb9cca824ce3e90647f3a (patch)
treee35e8b9401e92515c15a9c4713aa18466260a3a0 /sw/source/core/doc/DocumentSettingManager.cxx
parent591903a1b1b64e68322f7454d3e61b2503028b9a (diff)
Replace several for_each by range based fors and functors by lambdas in sw.
It also corrects one whitespace and an outdated comment. Change-Id: Ife1c45d42b059353d3c98d68518d44a1379a96fa Reviewed-on: https://gerrit.libreoffice.org/19899 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/core/doc/DocumentSettingManager.cxx')
-rw-r--r--sw/source/core/doc/DocumentSettingManager.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/doc/DocumentSettingManager.cxx b/sw/source/core/doc/DocumentSettingManager.cxx
index 67c3f1256f64..4944eac525e7 100644
--- a/sw/source/core/doc/DocumentSettingManager.cxx
+++ b/sw/source/core/doc/DocumentSettingManager.cxx
@@ -434,8 +434,8 @@ void sw::DocumentSettingManager::setForbiddenCharacters(/*[in]*/ sal_uInt16 nLan
if( pTmpRoot && !m_rDoc.IsInReading() )
{
pTmpRoot->StartAllAction();
- std::set<SwRootFrm*> aAllLayouts = m_rDoc.GetAllLayouts();
- std::for_each( aAllLayouts.begin(), aAllLayouts.end(), std::bind2nd(std::mem_fun(&SwRootFrm::InvalidateAllContent), INV_SIZE));
+ for(SwRootFrm* aLayout : m_rDoc.GetAllLayouts())
+ aLayout->InvalidateAllContent(INV_SIZE);
pTmpRoot->EndAllAction();
}
m_rDoc.getIDocumentState().SetModified();
@@ -504,8 +504,8 @@ void sw::DocumentSettingManager::setCharacterCompressionType( /*[in]*/SwCharComp
if( pTmpRoot && !m_rDoc.IsInReading() )
{
pTmpRoot->StartAllAction();
- std::set<SwRootFrm*> aAllLayouts = m_rDoc.GetAllLayouts();
- std::for_each( aAllLayouts.begin(), aAllLayouts.end(), std::bind2nd(std::mem_fun(&SwRootFrm::InvalidateAllContent), INV_SIZE));
+ for( auto aLayout : m_rDoc.GetAllLayouts() )
+ aLayout->InvalidateAllContent(INV_SIZE);
pTmpRoot->EndAllAction();
}
m_rDoc.getIDocumentState().SetModified();