diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-06-29 01:00:09 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-06-29 01:43:57 +0900 |
commit | 6491e0ed5b460857a6f7af8d5b87099f57522a21 (patch) | |
tree | f165611e4e3af8f7597c142a30c8d13385fc6d4e | |
parent | 4296394d5c54be51b36a0cddb2f8a8f62a226867 (diff) |
Mark as const
Change-Id: Ia390987749be2d1d642d4add11efcc892a81722a
-rw-r--r-- | vcl/source/gdi/bitmap3.cxx | 2 | ||||
-rw-r--r-- | vcl/test/canvasbitmaptest.cxx | 2 | ||||
-rw-r--r-- | vcl/win/source/window/salframe.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx index 8d5e6a453763..5c4905a28b1e 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 7adba8400b59..c07da032b458 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 2571b99e2fa7..f3c94140d65b 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 |