diff --git a/vcl/source/window/keycod.cxx b/vcl/source/window/keycod.cxx index 77c38aedbee3..07516973a193 100644 --- a/vcl/source/window/keycod.cxx +++ b/vcl/source/window/keycod.cxx @@ -29,7 +29,7 @@ // ======================================================================= -static sal_uInt16 aImplKeyFuncTab[(KEYFUNC_FRONT+1)*4] = +static const sal_uInt16 aImplKeyFuncTab[(KEYFUNC_FRONT+1)*4] = { 0, 0, 0, 0, // KEYFUNC_DONTKNOW KEY_N | KEY_MOD1, 0, 0, 0, // KEYFUNC_NEW diff --git a/vcl/source/window/mnemonic.cxx b/vcl/source/window/mnemonic.cxx index 45ceac4f7ffb..78afb466a61a 100644 --- a/vcl/source/window/mnemonic.cxx +++ b/vcl/source/window/mnemonic.cxx @@ -279,14 +279,14 @@ sal_Bool MnemonicGenerator::CreateMnemonic( XubString& rKey ) nIndex = rKey.Len(); if( nIndex >= 2 ) { - static sal_Unicode cGreaterGreater[] = { 0xFF1E, 0xFF1E }; + static const sal_Unicode cGreaterGreater[] = { 0xFF1E, 0xFF1E }; if ( rKey.EqualsAscii( ">>", nIndex-2, 2 ) || rKey.Equals( cGreaterGreater, nIndex-2, 2 ) ) nIndex -= 2; } if( nIndex >= 3 ) { - static sal_Unicode cDotDotDot[] = { 0xFF0E, 0xFF0E, 0xFF0E }; + static const sal_Unicode cDotDotDot[] = { 0xFF0E, 0xFF0E, 0xFF0E }; if ( rKey.EqualsAscii( "...", nIndex-3, 3 ) || rKey.Equals( cDotDotDot, nIndex-3, 3 ) ) nIndex -= 3;