diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-26 17:16:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-27 11:35:24 +0200 |
commit | b83cc2b0108a4ec2087221a6150a66578788e5b4 (patch) | |
tree | b3684057b66602ddf01546dcb8306fddbad69a38 /framework/source/uielement | |
parent | 86be39afd5b142f7cbdbe0107b394c5924c414cc (diff) |
loplugin:stringloop in basic, framework, sax, svtools
Change-Id: I2bad74a8f103e9dc68c8e0d0e6315697068d2f6d
Reviewed-on: https://gerrit.libreoffice.org/58135
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/uielement')
-rw-r--r-- | framework/source/uielement/langselectionmenucontroller.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/source/uielement/langselectionmenucontroller.cxx b/framework/source/uielement/langselectionmenucontroller.cxx index e696f13b5a8c..3f633eaecdf8 100644 --- a/framework/source/uielement/langselectionmenucontroller.cxx +++ b/framework/source/uielement/langselectionmenucontroller.cxx @@ -167,7 +167,6 @@ void LanguageSelectionMenuController::fillPopupMenu( Reference< css::awt::XPopup if ( pVCLPopupMenu ) pPopupMenu = static_cast<PopupMenu *>(pVCLPopupMenu->GetMenu()); - OUString aCmd; OUString aCmd_Dialog; OUString aCmd_Language; if( eMode == MODE_SetLanguageSelectionMenu ) @@ -205,8 +204,7 @@ void LanguageSelectionMenuController::fillPopupMenu( Reference< css::awt::XPopup !langItem.isEmpty()) // 'no language found' from language guessing { pPopupMenu->InsertItem( nItemId, langItem); - aCmd = aCmd_Language; - aCmd += langItem; + OUString aCmd = aCmd_Language + langItem; pPopupMenu->SetItemCommand( nItemId, aCmd ); if (langItem == m_aCurLang && eMode == MODE_SetLanguageSelectionMenu ) { @@ -220,7 +218,7 @@ void LanguageSelectionMenuController::fillPopupMenu( Reference< css::awt::XPopup // entry for LANGUAGE_NONE ++nItemId; pPopupMenu->InsertItem( nItemId, FwkResId(STR_LANGSTATUS_NONE) ); - aCmd = aCmd_Language + "LANGUAGE_NONE"; + OUString aCmd = aCmd_Language + "LANGUAGE_NONE"; pPopupMenu->SetItemCommand( nItemId, aCmd ); // entry for 'Reset to default language' |