summaryrefslogtreecommitdiff
path: root/sw/source/uibase/lingu
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/lingu')
-rw-r--r--sw/source/uibase/lingu/sdrhhcwrap.cxx9
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();