summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrishna keshav <princy.krishnakeshav@gmail.com>2016-06-02 21:55:44 +0530
committerAkshay Deep <akshaydeepiitr@gmail.com>2016-06-04 00:17:00 +0000
commitb2abb97a6545096d6952430f7ff37cadb1a23707 (patch)
tree53a294a676e8595df133b3dba9dd423bda7f6674
parent411e7e88030d86e64339a53462d2fb06180c3538 (diff)
tdf#96099 Reduce number of typedefs used for trivial container types
Change-Id: Iecf8052d3f7ec5593205184622d53550e6a52161 Reviewed-on: https://gerrit.libreoffice.org/25836 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com>
-rw-r--r--filter/source/msfilter/msvbahelper.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx
index d831ed0f11e1..a06eb5ceb1fc 100644
--- a/filter/source/msfilter/msvbahelper.cxx
+++ b/filter/source/msfilter/msvbahelper.cxx
@@ -624,8 +624,6 @@ bool getModifier( char c, sal_uInt16& mod )
return false;
}
-typedef std::map< OUString, sal_uInt16 > MSKeyCodeMap;
-
sal_uInt16 parseChar( char c ) throw ( uno::RuntimeException )
{
sal_uInt16 nVclKey = 0;
@@ -692,7 +690,7 @@ KeyCodeEntry aMSKeyCodesData[] = {
awt::KeyEvent parseKeyEvent( const OUString& Key ) throw ( uno::RuntimeException )
{
- static MSKeyCodeMap s_KeyCodes;
+ static std::map< OUString, sal_uInt16 > s_KeyCodes;
if ( s_KeyCodes.empty() )
{
for (KeyCodeEntry & i : aMSKeyCodesData)
@@ -731,7 +729,7 @@ awt::KeyEvent parseKeyEvent( const OUString& Key ) throw ( uno::RuntimeException
nVclKey |= parseChar( (char)( sKeyCode[ 0 ] ) );
else
{
- MSKeyCodeMap::iterator it = s_KeyCodes.find( sKeyCode );
+ auto it = s_KeyCodes.find( sKeyCode );
if ( it == s_KeyCodes.end() ) // unknown or unsupported
throw uno::RuntimeException();
nVclKey |= it->second;