summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-16 14:05:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-16 14:31:38 +0100
commit890afecb45bfcd2e53599974fbcf61fffd8f8a7b (patch)
tree9233bafbcfae88e93d387e501e3195aa3e98d2f4 /oox
parentfaa63cd14c1d360d0e4eedb64cd879aa1229fa60 (diff)
loplugin:buriedassign in dbaccess..oox
Change-Id: Ic0ca695a1d9d05418213475a68e233953136cc8e Reviewed-on: https://gerrit.libreoffice.org/63468 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/color.cxx2
-rw-r--r--oox/source/dump/dumperbase.cxx4
-rw-r--r--oox/source/vml/vmlformatting.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/oox/source/drawingml/color.cxx b/oox/source/drawingml/color.cxx
index 44662584da84..7008328c47ca 100644
--- a/oox/source/drawingml/color.cxx
+++ b/oox/source/drawingml/color.cxx
@@ -553,7 +553,7 @@ void Color::clearTransparence()
case XML_comp:
// comp: rotate hue by 180 degrees, do not change lum/sat
toHsl();
- (mnC1 += 180 * PER_DEGREE) %= MAX_DEGREE;
+ mnC1 = (mnC1 + (180 * PER_DEGREE)) % MAX_DEGREE;
break;
case XML_inv:
// invert percentual RGB values
diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx
index 2d8fb299c010..d754c6fa9cd9 100644
--- a/oox/source/dump/dumperbase.cxx
+++ b/oox/source/dump/dumperbase.cxx
@@ -682,7 +682,7 @@ bool StringHelper::convertFromDec( sal_Int64& ornData, const OUString& rData )
sal_Unicode cChar = rData[ nPos ];
if( (cChar < '0') || (cChar > '9') )
return false;
- (ornData *= 10) += (cChar - '0');
+ ornData = (ornData * 10) + (cChar - '0');
}
if( bNeg )
ornData *= -1;
@@ -703,7 +703,7 @@ bool StringHelper::convertFromHex( sal_Int64& ornData, const OUString& rData )
cChar -= ('a' - 10);
else
return false;
- (ornData <<= 4) += cChar;
+ ornData = (ornData << 4) + cChar;
}
return true;
}
diff --git a/oox/source/vml/vmlformatting.cxx b/oox/source/vml/vmlformatting.cxx
index c215cc577c7b..db9f008a5a99 100644
--- a/oox/source/vml/vmlformatting.cxx
+++ b/oox/source/vml/vmlformatting.cxx
@@ -785,7 +785,7 @@ void FillModel::pushToPropMap( ShapePropertyMap& rPropMap, const GraphicHelper&
behaviour is reversed. This means that in this case
a focus of 0% swaps the gradient. */
if( fFocus < -0.5 || fFocus > 0.5 )
- (nVmlAngle += 180) %= 360;
+ nVmlAngle = (nVmlAngle + 180) % 360;
// set the start and stop colors
lcl_setGradientStop( aFillProps.maGradientProps.maGradientStops, 0.0, aColor1 );
lcl_setGradientStop( aFillProps.maGradientProps.maGradientStops, 1.0, aColor2 );