[Libreoffice-commits] core.git: 2 commits - vcl/source

Takeshi Abe tabe at fixedpoint.jp
Tue Nov 3 03:21:40 PST 2015


 vcl/source/control/ilstbox.cxx |    2 +-
 vcl/source/window/decoview.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 8f5748e29ee46315323a38d14af61c4f4e9f8fdf
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Tue Nov 3 19:58:20 2015 +0900

    vcl: Mark it as const
    
    Change-Id: I0ddaf1cf9d0a3f36f88bea3101b7059e04d755ff

diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx
index 3ef2bc9..376c7bf 100644
--- a/vcl/source/window/decoview.cxx
+++ b/vcl/source/window/decoview.cxx
@@ -1101,7 +1101,7 @@ void DecorationView::DrawHandle(const Rectangle& rRect, bool bVertical)
     mpOutDev->SetLineColor(rStyleSettings.GetDarkShadowColor());
     mpOutDev->SetFillColor(rStyleSettings.GetDarkShadowColor());
 
-    sal_Int32 nNumberOfPoints = 3;
+    const sal_Int32 nNumberOfPoints = 3;
 
     long nHalfWidth = aOutputSize.Width() / 2.0f;
     long nHalfHeight = aOutputSize.Height() / 2.0f;
commit 0e17dd5810b393b69d7f84bc4529186c98c94caf
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Tue Nov 3 19:57:51 2015 +0900

    vcl: Mark them as const
    
    Change-Id: Ia19d3512d156be725840c24d441a3eaa08e83a5e

diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 92ea383..358fcf2 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -3115,7 +3115,7 @@ void ImplListBoxFloatingWindow::StartFloat( bool bStartTracking )
         if( ImplGetSVData()->maNWFData.mbNoFocusRects &&
             GetParent()->IsNativeWidgetEnabled() )
         {
-            sal_Int32 nLeft = 4, nTop = 4, nRight = 4, nBottom = 4;
+            const sal_Int32 nLeft = 4, nTop = 4, nRight = 4, nBottom = 4;
             aPos.X() += nLeft;
             aPos.Y() += nTop;
             aSz.Width() -= nLeft + nRight;


More information about the Libreoffice-commits mailing list