summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-04-18 02:00:31 +0200
committerEike Rathke <erack@redhat.com>2014-04-18 02:00:37 +0200
commit131edeac010f61918bd9403f5e7e2cb2025dedd9 (patch)
treea7d102f07d58342bcc5c000f56850de146c499b8 /framework
parentd4ccbef95dd026a489d920d8a0929a84984b6250 (diff)
why obtain the string in each iteration again
Change-Id: I3faf1d27bb11eeabbe91da32d35480c9381c50e2
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uielement/langselectionstatusbarcontroller.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/source/uielement/langselectionstatusbarcontroller.cxx b/framework/source/uielement/langselectionstatusbarcontroller.cxx
index 7d3e9be73c6e..b2f3d4589848 100644
--- a/framework/source/uielement/langselectionstatusbarcontroller.cxx
+++ b/framework/source/uielement/langselectionstatusbarcontroller.cxx
@@ -170,12 +170,13 @@ throw (css::uno::RuntimeException)
sal_Int16 nItemId = static_cast< sal_Int16 >(MID_LANG_SEL_1);
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::map< sal_Int16, OUString > aLangMap;
std::set< OUString >::const_iterator it;
for (it = aLangItems.begin(); it != aLangItems.end(); ++it)
{
const OUString & rStr( *it );
- if ( rStr != OUString( SvtLanguageTable::GetLanguageString( LANGUAGE_NONE ) ) &&
+ if ( rStr != sNone &&
rStr != sAsterisk &&
rStr != sEmpty)
{