summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hwpreader.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-16 14:02:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-19 08:58:46 +0200
commit96c85e7d107ad0d79295349f01cd8578ce7daeba (patch)
treec205fda67414559b325ab94b8e8dfff753d9ee4c /hwpfilter/source/hwpreader.cxx
parent61bfcf16dc6e4cedcd82b51a646b89909f035f2d (diff)
loplugin:useuniqueptr in hwpfilter
Change-Id: Id276015425ea7de3cf55b9ef21b4e7ce54c2ce47
Diffstat (limited to 'hwpfilter/source/hwpreader.cxx')
-rw-r--r--hwpfilter/source/hwpreader.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx
index 87f782359bb4..f4b809f48a33 100644
--- a/hwpfilter/source/hwpreader.cxx
+++ b/hwpfilter/source/hwpreader.cxx
@@ -427,12 +427,12 @@ void HwpReader::makeDrawMiscStyle( HWPDrawingObject *hdo )
while( hdo )
{
if( hdo->child )
- makeDrawMiscStyle( hdo->child );
+ makeDrawMiscStyle( hdo->child.get() );
HWPDOProperty *prop = &hdo->property;
if( hdo->type == HWPDO_CONTAINER )
{
- hdo = hdo->next;
+ hdo = hdo->next.get();
continue;
}
@@ -694,7 +694,7 @@ void HwpReader::makeDrawMiscStyle( HWPDrawingObject *hdo )
rendEl( "draw:hatch");
}
}
- hdo = hdo->next;
+ hdo = hdo->next.get();
}
}
@@ -2205,9 +2205,9 @@ void HwpReader::makeDrawStyle( HWPDrawingObject * hdo, FBoxStyle * fstyle)
if( hdo->type == 0 )
{
- makeDrawStyle( hdo->child, fstyle );
+ makeDrawStyle( hdo->child.get(), fstyle );
}
- hdo = hdo->next;
+ hdo = hdo->next.get();
}
}
@@ -4016,7 +4016,7 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox)
{
rstartEl("draw:g", mxList.get());
mxList->clear();
- makePictureDRAW(drawobj->child, hbox);
+ makePictureDRAW(drawobj->child.get(), hbox);
rendEl("draw:g");
}
else
@@ -4574,7 +4574,7 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox)
}
}
mxList->clear();
- drawobj = drawobj->next;
+ drawobj = drawobj->next.get();
}
}