Kaydet (Commit) 8113588c authored tarafından jailletc36's avatar jailletc36 Kaydeden (comit) Markus Mohrhard

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/781Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst ce3d8add
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment