diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-22 16:41:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-22 16:41:20 +0200 |
commit | bc9aa454ff63a7aa308b84c0170c48dc5267c040 (patch) | |
tree | 152c5b4c85f85e896a627e748c1e8688d4c31457 /filter/source/svg/svgexport.cxx | |
parent | 06f9db0db806378391f321388f2125627dbebf27 (diff) |
loplugin:commaoperator in filter/
Change-Id: I88697862bfb160d4d7d257bf425507567deae837
Diffstat (limited to 'filter/source/svg/svgexport.cxx')
-rw-r--r-- | filter/source/svg/svgexport.cxx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index 1fcd97046f9d..d66c8aa95649 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -414,7 +414,8 @@ ObjectRepresentation& ObjectRepresentation::operator=( const ObjectRepresentatio if (this == &rPresentation) return *this; mxObject = rPresentation.mxObject; - delete mpMtf, ( mpMtf = rPresentation.mpMtf ? new GDIMetaFile( *rPresentation.mpMtf ) : nullptr ); + delete mpMtf; + mpMtf = rPresentation.mpMtf ? new GDIMetaFile( *rPresentation.mpMtf ) : nullptr; return *this; } @@ -604,7 +605,8 @@ bool SVGFilter::implExport( const Sequence< PropertyValue >& rDescriptor ) } catch( ... ) { - delete mpSVGDoc, mpSVGDoc = nullptr; + delete mpSVGDoc; + mpSVGDoc = nullptr; OSL_FAIL( "Exception caught" ); } @@ -624,10 +626,13 @@ bool SVGFilter::implExport( const Sequence< PropertyValue >& rDescriptor ) } } - delete mpSVGWriter, mpSVGWriter = nullptr; + delete mpSVGWriter; + mpSVGWriter = nullptr; mpSVGExport = nullptr; // pointed object is released by xSVGExport dtor at the end of this scope - delete mpSVGFontExport, mpSVGFontExport = nullptr; - delete mpObjects, mpObjects = nullptr; + delete mpSVGFontExport; + mpSVGFontExport = nullptr; + delete mpObjects; + mpObjects = nullptr; mbPresentation = false; } } @@ -887,7 +892,8 @@ bool SVGFilter::implExportDocument() implGenerateScript(); } - delete mpSVGDoc, mpSVGDoc = nullptr; + delete mpSVGDoc; + mpSVGDoc = nullptr; bRet = true; } } |