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>
This commit is contained in:
committed by
Markus Mohrhard
parent
ce3d8addce
commit
8113588c35
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user