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

Takeshi Abe tabe at fixedpoint.jp
Fri Jun 28 09:44:26 PDT 2013


 vcl/source/gdi/bitmap3.cxx         |    2 +-
 vcl/test/canvasbitmaptest.cxx      |    2 +-
 vcl/win/source/window/salframe.cxx |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6491e0ed5b460857a6f7af8d5b87099f57522a21
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sat Jun 29 01:00:09 2013 +0900

    Mark as const
    
    Change-Id: Ia390987749be2d1d642d4add11efcc892a81722a

diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index 8d5e6a4..5c4905a 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -215,7 +215,7 @@ void ImplCreateDitherMatrix( sal_uInt8 (*pDitherMatrix)[16][16] )
     long            i, j, k, l;
     sal_uInt16          pMtx[ 16 ][ 16 ];
     sal_uInt16          nMax = 0;
-    static sal_uInt8    pMagic[4][4] = { { 0, 14,  3, 13, },
+    static const sal_uInt8 pMagic[4][4] = { { 0, 14,  3, 13, },
                                      {11,  5,  8,  6, },
                                      {12,  2, 15,  1, },
                                      {7,   9,  4, 10 } };
diff --git a/vcl/test/canvasbitmaptest.cxx b/vcl/test/canvasbitmaptest.cxx
index 7adba84..c07da03 100644
--- a/vcl/test/canvasbitmaptest.cxx
+++ b/vcl/test/canvasbitmaptest.cxx
@@ -701,7 +701,7 @@ public:
 
 void TestWindow::Paint( const Rectangle& )
 {
-    static sal_Int8 lcl_depths[]={1,4,8,16,24};
+    static const sal_Int8 lcl_depths[]={1,4,8,16,24};
 
     try
     {
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 2571b99..f3c9414 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -522,7 +522,7 @@ HWND ImplSalReCreateHWND( HWND hWndParent, HWND oldhWnd, sal_Bool bAsChild )
 // translation table from System keycodes into StartView keycodes
 #define KEY_TAB_SIZE     146
 
-static sal_uInt16 aImplTranslateKeyTab[KEY_TAB_SIZE] =
+static const sal_uInt16 aImplTranslateKeyTab[KEY_TAB_SIZE] =
 {
     // StarView-Code      System-Code                         Index
     0,                    //                                  0


More information about the Libreoffice-commits mailing list