summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
{