diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-16 15:23:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-17 08:25:47 +0200 |
commit | ccb2a1f650bc505f8a4f1abebf8ce4f9396562a8 (patch) | |
tree | 2ee2fd4f300ae95cf23bade1f242e02f9b276c07 /drawinglayer/source/processor2d | |
parent | da5c3a1ee43dd1a07cbd1b8005488bf05432593d (diff) |
clang-tidy readability-redundant-smartptr-get
redundant get() call on smart pointer
Change-Id: Icb5a03bbc15e79a30d3d135a507d22914d15c2bd
Reviewed-on: https://gerrit.libreoffice.org/61837
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/source/processor2d')
-rw-r--r-- | drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index 3d956cfa5c93..825b1504e0de 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -1042,7 +1042,7 @@ namespace drawinglayer std::unique_ptr< vcl::PDFWriter::AnyWidget > pPDFControl( ::toolkitform::describePDFControl( rXControl, *mpPDFExtOutDevData ) ); - if(pPDFControl.get()) + if (pPDFControl) { // still need to fill in the location (is a class Rectangle) const basegfx::B2DRange aRangeLogic(rControlPrimitive.getB2DRange(getViewInformation2D())); @@ -1056,7 +1056,7 @@ namespace drawinglayer pPDFControl->TextFont.SetFontSize(aFontSize); mpPDFExtOutDevData->BeginStructureElement(vcl::PDFWriter::Form); - mpPDFExtOutDevData->CreateControl(*pPDFControl.get()); + mpPDFExtOutDevData->CreateControl(*pPDFControl); mpPDFExtOutDevData->EndStructureElement(); // no normal paint needed (see original UnoControlPDFExportContact::do_PaintObject); @@ -1295,8 +1295,8 @@ namespace drawinglayer rtl::Reference< primitive2d::PolygonHairlinePrimitive2D > xPLeft(new primitive2d::PolygonHairlinePrimitive2D(aLeft, rHairlinePrimitive.getBColor())); rtl::Reference< primitive2d::PolygonHairlinePrimitive2D > xPRight(new primitive2d::PolygonHairlinePrimitive2D(aRight, rHairlinePrimitive.getBColor())); - processBasePrimitive2D(*xPLeft.get()); - processBasePrimitive2D(*xPRight.get()); + processBasePrimitive2D(*xPLeft); + processBasePrimitive2D(*xPRight); } else { @@ -1344,8 +1344,8 @@ namespace drawinglayer rtl::Reference< primitive2d::PolygonStrokePrimitive2D > xPRight(new primitive2d::PolygonStrokePrimitive2D( aRight, rStrokePrimitive.getLineAttribute(), rStrokePrimitive.getStrokeAttribute())); - processBasePrimitive2D(*xPLeft.get()); - processBasePrimitive2D(*xPRight.get()); + processBasePrimitive2D(*xPLeft); + processBasePrimitive2D(*xPRight); } else { @@ -1435,8 +1435,8 @@ namespace drawinglayer aEmpty, rStrokeArrowPrimitive.getEnd())); - processBasePrimitive2D(*xPLeft.get()); - processBasePrimitive2D(*xPRight.get()); + processBasePrimitive2D(*xPLeft); + processBasePrimitive2D(*xPRight); } else { |