summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorjailletc36 <christophe.jaillet@wanadoo.fr>2012-10-06 22:23:29 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-06 22:14:21 +0000
commit8113588c35ae494ccdcbb864a7f0f9e08697118a (patch)
tree25e6fa2f1e32ae020370b71b9d582378d81ee445 /framework
parentce3d8addcea0d3c8b6efae1f0d3836325deeb72f (diff)
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 <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uielement/langselectionmenucontroller.cxx2
1 files changed, 0 insertions, 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;
}
}