Mark as const
Change-Id: Ib7f8aeeca64868fa2037145613023a6abfef7648
This commit is contained in:
@@ -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
|
0, 0, 0, 0, // KEYFUNC_DONTKNOW
|
||||||
KEY_N | KEY_MOD1, 0, 0, 0, // KEYFUNC_NEW
|
KEY_N | KEY_MOD1, 0, 0, 0, // KEYFUNC_NEW
|
||||||
|
@@ -279,14 +279,14 @@ sal_Bool MnemonicGenerator::CreateMnemonic( XubString& rKey )
|
|||||||
nIndex = rKey.Len();
|
nIndex = rKey.Len();
|
||||||
if( nIndex >= 2 )
|
if( nIndex >= 2 )
|
||||||
{
|
{
|
||||||
static sal_Unicode cGreaterGreater[] = { 0xFF1E, 0xFF1E };
|
static const sal_Unicode cGreaterGreater[] = { 0xFF1E, 0xFF1E };
|
||||||
if ( rKey.EqualsAscii( ">>", nIndex-2, 2 ) ||
|
if ( rKey.EqualsAscii( ">>", nIndex-2, 2 ) ||
|
||||||
rKey.Equals( cGreaterGreater, nIndex-2, 2 ) )
|
rKey.Equals( cGreaterGreater, nIndex-2, 2 ) )
|
||||||
nIndex -= 2;
|
nIndex -= 2;
|
||||||
}
|
}
|
||||||
if( nIndex >= 3 )
|
if( nIndex >= 3 )
|
||||||
{
|
{
|
||||||
static sal_Unicode cDotDotDot[] = { 0xFF0E, 0xFF0E, 0xFF0E };
|
static const sal_Unicode cDotDotDot[] = { 0xFF0E, 0xFF0E, 0xFF0E };
|
||||||
if ( rKey.EqualsAscii( "...", nIndex-3, 3 ) ||
|
if ( rKey.EqualsAscii( "...", nIndex-3, 3 ) ||
|
||||||
rKey.Equals( cDotDotDot, nIndex-3, 3 ) )
|
rKey.Equals( cDotDotDot, nIndex-3, 3 ) )
|
||||||
nIndex -= 3;
|
nIndex -= 3;
|
||||||
|
Reference in New Issue
Block a user