summaryrefslogtreecommitdiff
path: root/vcl/source/window/window2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-27 14:06:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-28 08:55:28 +0200
commitd2d85921605415908c553e84db654628f9f0c0b1 (patch)
tree161816623c32febde1c62d524fa1ef0a20a1aeda /vcl/source/window/window2.cxx
parent26c82e22bf4f077022ae88d0a7f8ad0fa6d2a5ba (diff)
loplugin:oncevar in vcl
Change-Id: I37a6dacda12e1c2910737d74aa344c7e2e195aeb Reviewed-on: https://gerrit.libreoffice.org/39328 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/window2.cxx')
-rw-r--r--vcl/source/window/window2.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 0a54ea7fe31c..56359bad3ce4 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -773,9 +773,9 @@ bool Window::HandleScrollCommand( const CommandEvent& rCmd,
if ( deltaXInLogic)
{
#ifndef IOS
- bool isMultiplyByLineSize = true;
+ bool const isMultiplyByLineSize = true;
#else
- bool isMultiplyByLineSize = false;
+ bool const isMultiplyByLineSize = false;
#endif
lcl_HandleScrollHelper( pHScrl, deltaXInLogic, isMultiplyByLineSize );
bRet = true;
@@ -804,9 +804,9 @@ bool Window::HandleScrollCommand( const CommandEvent& rCmd,
if ( deltaYInLogic )
{
#ifndef IOS
- bool isMultiplyByLineSize = true;
+ bool const isMultiplyByLineSize = true;
#else
- bool isMultiplyByLineSize = false;
+ bool const isMultiplyByLineSize = false;
#endif
lcl_HandleScrollHelper( pVScrl, deltaYInLogic, isMultiplyByLineSize );