diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-12-10 13:21:01 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-12-10 14:45:34 +0100 |
commit | 01b64e5f5e3658810c7e66c6577705764ef7e288 (patch) | |
tree | 15043cb32b19f6215e097935abb62e2c511a6713 /sw/source/uibase/lingu | |
parent | f5c9593a7bab7af14feb88a74d757b2640e3149f (diff) |
Use for range loop in sdrhhcwrap (sw)
Change-Id: I806dc071ab825fb689bdcee97f2db82518165245
Reviewed-on: https://gerrit.libreoffice.org/46186
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw/source/uibase/lingu')
-rw-r--r-- | sw/source/uibase/lingu/sdrhhcwrap.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sw/source/uibase/lingu/sdrhhcwrap.cxx b/sw/source/uibase/lingu/sdrhhcwrap.cxx index 6aae8d3aa34c..eab365ffaeb2 100644 --- a/sw/source/uibase/lingu/sdrhhcwrap.cxx +++ b/sw/source/uibase/lingu/sdrhhcwrap.cxx @@ -125,15 +125,14 @@ bool SdrHHCWrapper::ConvertNextDocument() std::list<SdrTextObj*> aTextObjs; SwDrawContact::GetTextObjectsFromFormat( aTextObjs, pView->GetDocShell()->GetDoc() ); - for ( std::list<SdrTextObj*>::iterator aIt = aTextObjs.begin(); aIt != aTextObjs.end(); ++aIt ) + for (auto const& textObj : aTextObjs) { - pTextObj = (*aIt); - if ( pTextObj ) + if (textObj) { - OutlinerParaObject* pParaObj = pTextObj->GetOutlinerParaObject(); + OutlinerParaObject* pParaObj = textObj->GetOutlinerParaObject(); if ( pParaObj ) { - SetPaperSize( pTextObj->GetLogicRect().GetSize() ); + SetPaperSize( textObj->GetLogicRect().GetSize() ); SetText( *pParaObj ); ClearModifyFlag(); |