summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-04-18 01:58:42 +0200
committerEike Rathke <erack@redhat.com>2014-04-18 01:59:15 +0200
commitd4ccbef95dd026a489d920d8a0929a84984b6250 (patch)
treefe9a1d772b3c2a22fd7f28c469321a9a5e5e14b1 /framework
parentca5361ce25f595ceabe4305466f6b45c3907e86c (diff)
why obtain the string in each iteration again
Change-Id: I78225a0b0b53178e6cb7d534d767f5984604e442
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uielement/langselectionmenucontroller.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/source/uielement/langselectionmenucontroller.cxx b/framework/source/uielement/langselectionmenucontroller.cxx
index 3c1cf94896be..8d1ced1d61d7 100644
--- a/framework/source/uielement/langselectionmenucontroller.cxx
+++ b/framework/source/uielement/langselectionmenucontroller.cxx
@@ -233,11 +233,12 @@ 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 sAsterisk("*"); // multiple languages in current selection
const OUString sEmpty; // 'no language found' from language guessing
+ const OUString sNone( SvtLanguageTable::GetLanguageString( LANGUAGE_NONE ));
std::set< OUString >::const_iterator it;
for (it = aLangItems.begin(); it != aLangItems.end(); ++it)
{
const OUString & rStr( *it );
- if (rStr != SvtLanguageTable::GetLanguageString( LANGUAGE_NONE ) &&
+ if (rStr != sNone &&
rStr != sAsterisk &&
rStr != sEmpty)
{