From 8113588c35ae494ccdcbb864a7f0f9e08697118a Mon Sep 17 00:00:00 2001 From: jailletc36 Date: Sat, 6 Oct 2012 22:23:29 +0200 Subject: [PATCH] cppcheck: unreadVariable. aLangMap is a std::map that is written but never used, so drop it. Change-Id: I8f5184c58fbe812beab8580349535920645e062e Reviewed-on: https://gerrit.libreoffice.org/781 Reviewed-by: Markus Mohrhard Tested-by: Markus Mohrhard --- framework/source/uielement/langselectionmenucontroller.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/framework/source/uielement/langselectionmenucontroller.cxx b/framework/source/uielement/langselectionmenucontroller.cxx index 1dc52ed35cf3..44605f082d9f 100644 --- a/framework/source/uielement/langselectionmenucontroller.cxx +++ b/framework/source/uielement/langselectionmenucontroller.cxx @@ -251,7 +251,6 @@ void LanguageSelectionMenuController::fillPopupMenu( Reference< css::awt::XPopup sal_Int16 nItemId = 1; // in this control the item id is not important for executing the command const OUString sAsterix("*"); // multiple languages in current selection const OUString sEmpty; // 'no language found' from language guessing - std::map< sal_Int16, OUString > aLangMap; std::set< OUString >::const_iterator it; for (it = aLangItems.begin(); it != aLangItems.end(); ++it) { @@ -269,7 +268,6 @@ void LanguageSelectionMenuController::fillPopupMenu( Reference< css::awt::XPopup //make a sign for the current language pPopupMenu->CheckItem( nItemId, sal_True ); } - aLangMap[ nItemId ] = rStr; ++nItemId; } }