Kaydet (Commit) 01b64e5f authored tarafından Julien Nabet's avatar Julien Nabet

Use for range loop in sdrhhcwrap (sw)

Change-Id: I806dc071ab825fb689bdcee97f2db82518165245
Reviewed-on: https://gerrit.libreoffice.org/46186Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst f5c9593a
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment