diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-06 11:37:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-07 07:38:24 +0100 |
commit | 38187ec15b6cbaedcadcbd8f3bcb632a5c6be88f (patch) | |
tree | ac3de03a8c2944371ce43443750f6eeb8d318046 /cui | |
parent | 60714a814847f6d10f00aa6809a3896a48741e0b (diff) |
loplugin:singlevalfields extend to all static vars
Change-Id: Ic238bb5291539fd1b7e98cb4afc9b25f37e7d528
Reviewed-on: https://gerrit.libreoffice.org/64710
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/screenshotannotationdlg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx index 8c3f6cfc528f..58304062d111 100644 --- a/cui/source/dialogs/screenshotannotationdlg.cxx +++ b/cui/source/dialogs/screenshotannotationdlg.cxx @@ -438,14 +438,14 @@ void ScreenshotAnnotationDlg_Impl::PaintControlDataEntry( // grow in pixels to be a little bit 'outside'. This also // ensures that getWidth()/getHeight() ain't 0.0 (see division below) - static double fGrowTopLeft(1.5); - static double fGrowBottomRight(0.5); + static const double fGrowTopLeft(1.5); + static const double fGrowBottomRight(0.5); aB2DRange.expand(aB2DRange.getMinimum() - basegfx::B2DPoint(fGrowTopLeft, fGrowTopLeft)); aB2DRange.expand(aB2DRange.getMaximum() + basegfx::B2DPoint(fGrowBottomRight, fGrowBottomRight)); // edge rounding in pixel. Need to convert, value for // createPolygonFromRect is relative [0.0 .. 1.0] - static double fEdgeRoundPixel(8.0); + static const double fEdgeRoundPixel(8.0); const basegfx::B2DPolygon aPolygon( basegfx::utils::createPolygonFromRect( aB2DRange, @@ -510,14 +510,14 @@ void ScreenshotAnnotationDlg_Impl::RepaintToBuffer( // paint selected entries for (auto&& rCandidate : maSelected) { - static double fLineWidthEntries(5.0); + static const double fLineWidthEntries(5.0); PaintControlDataEntry(*rCandidate, COL_LIGHTRED, fLineWidthEntries, fTransparence * 0.2); } // paint hilighted entry if (mpHilighted && bPaintHilight) { - static double fLineWidthHilight(7.0); + static const double fLineWidthHilight(7.0); PaintControlDataEntry(*mpHilighted, aHilightColor, fLineWidthHilight, fTransparence); } |