diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2015-08-22 11:58:11 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-08-22 13:02:08 +0000 |
commit | 25accda781bc0bc79ca2e887c54ca981068bf407 (patch) | |
tree | 0f551b4f516dd289df523d71bff08a26de2c3622 /framework | |
parent | Updated core (diff) | |
download | core-25accda781bc0bc79ca2e887c54ca981068bf407.tar.gz core-25accda781bc0bc79ca2e887c54ca981068bf407.zip |
tdf#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I6ab170c4426494ab9fc53017f88e47fbfdbd9aad
Reviewed-on: https://gerrit.libreoffice.org/17920
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/classes/menumanager.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/source/classes/menumanager.cxx b/framework/source/classes/menumanager.cxx index 6e95b4cb7be4..039871da550d 100644 --- a/framework/source/classes/menumanager.cxx +++ b/framework/source/classes/menumanager.cxx @@ -539,8 +539,6 @@ void MenuManager::UpdateSpecialFileMenu( Menu* pMenu ) const sal_uInt32 nCount = aNewPickVector.size(); for ( sal_uInt32 i = 0; i < nCount; i++ ) { - char menuShortCut[5] = "~n: "; - OUString aMenuShortCut; if ( i <= 9 ) { @@ -548,6 +546,7 @@ void MenuManager::UpdateSpecialFileMenu( Menu* pMenu ) aMenuShortCut = "1~0: "; else { + char menuShortCut[5] = "~n: "; menuShortCut[1] = (char)( '1' + i ); aMenuShortCut = OUString::createFromAscii( menuShortCut ); } |