summaryrefslogtreecommitdiff
path: root/vcl/source/window/printdlg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-12-06 11:37:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-07 07:38:24 +0100
commit38187ec15b6cbaedcadcbd8f3bcb632a5c6be88f (patch)
treeac3de03a8c2944371ce43443750f6eeb8d318046 /vcl/source/window/printdlg.cxx
parent60714a814847f6d10f00aa6809a3896a48741e0b (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 'vcl/source/window/printdlg.cxx')
-rw-r--r--vcl/source/window/printdlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 6a038106fd23..05db90085456 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -346,7 +346,7 @@ void PrintDialog::PrintPreviewWindow::preparePreviewBitmap()
// what may look awkward and pixelated (again). This means
// to use a percentage value - if we have at least
// that value of required pixels, we are good.
- static double fPreventAwkwardFactor(1.35); // 35%
+ static const double fPreventAwkwardFactor(1.35); // 35%
if(nCurrentSquarePixels >= static_cast<sal_uInt32>(nRequiredSquarePixels * fPreventAwkwardFactor))
{
// at this place we also could add a mechanism to let the preview
@@ -366,7 +366,7 @@ void PrintDialog::PrintPreviewWindow::preparePreviewBitmap()
// Calculate nPlannedSquarePixels which is the required size
// expanded by a percentage (with max value of MaxSquarePixels)
- static double fExtraSpaceFactor(1.65); // 65%
+ static const double fExtraSpaceFactor(1.65); // 65%
const sal_uInt32 nPlannedSquarePixels(
std::min(
nMaxSquarePixels,