summaryrefslogtreecommitdiff
path: root/vcl/source/window/mnemonic.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-26 14:33:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-26 14:45:38 +0000
commit11bed72b2a0c3f51dde4733875486a5c181902ef (patch)
tree03f2121a4a4e254514e54d559598d232dc60fc09 /vcl/source/window/mnemonic.cxx
parentbcce2502a3c0a8bbb503a5b48de07defe21b09f0 (diff)
cppcheck: unreadVariable
Change-Id: Id4c43a6bcdf915b98410af9ceb0dbf20df3a9498
Diffstat (limited to 'vcl/source/window/mnemonic.cxx')
-rw-r--r--vcl/source/window/mnemonic.cxx37
1 files changed, 0 insertions, 37 deletions
diff --git a/vcl/source/window/mnemonic.cxx b/vcl/source/window/mnemonic.cxx
index 730e6a2af554..9ccb441f2800 100644
--- a/vcl/source/window/mnemonic.cxx
+++ b/vcl/source/window/mnemonic.cxx
@@ -287,49 +287,12 @@ OUString MnemonicGenerator::CreateMnemonic( const OUString& _rKey )
nIndex--;
}
rKey = rKey.replaceAt( nIndex, 0, aStr );
- bChanged = true;
break;
}
}
}
}
-// #i87415# Duplicates mnemonics are bad for consistent keyboard accessibility
-// It's probably better to not have mnemonics for some widgets, than to have ambiguous ones.
-// if( ! bChanged )
-// {
-// /*
-// * #97809# if all else fails use the first character of a word
-// * anyway and live with duplicate mnemonics
-// */
-// nIndex = 0;
-// do
-// {
-// c = aKey.GetChar( nIndex );
-
-// nMnemonicIndex = ImplGetMnemonicIndex( c );
-// if ( nMnemonicIndex != MNEMONIC_INDEX_NOTFOUND )
-// {
-// maMnemonics[nMnemonicIndex] = 0;
-// rKey.Insert( MNEMONIC_CHAR, nIndex );
-// bChanged = true;
-// break;
-// }
-
-// // Search for next word
-// do
-// {
-// nIndex++;
-// c = aKey.GetChar( nIndex );
-// if ( c == ' ' )
-// break;
-// }
-// while ( nIndex < nLen );
-// nIndex++;
-// }
-// while ( nIndex < nLen );
-// }
-
return rKey;
}