Kaydet (Commit) 8718c42d authored tarafından Julien Nabet's avatar Julien Nabet

Help cppcheck on filter/icgm/elements + optimize a bit operator =

cppcheck:
Avoid 'operator=' should return reference to 'this' instance.

Change-Id: Iac146fe31b2cebc8e4f4c74d79ad98625db04637
Reviewed-on: https://gerrit.libreoffice.org/69004
Tested-by: Jenkins
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 564d0d14
......@@ -34,6 +34,9 @@ CGMElements::~CGMElements()
CGMElements& CGMElements::operator=( const CGMElements& rSource )
{
if (this == &rSource)
return *this;
sal_uInt32 nIndex;
nVDCIntegerPrecision = rSource.nVDCIntegerPrecision;
......@@ -125,7 +128,7 @@ CGMElements& CGMElements::operator=( const CGMElements& rSource )
maHatchMap = rSource.maHatchMap;
bSegmentCount = rSource.bSegmentCount;
return (*this);
return *this;
}
......
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