summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svtools/source/misc/langtab.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx
index fe1480bf7499..1e8638fc6662 100644
--- a/svtools/source/misc/langtab.cxx
+++ b/svtools/source/misc/langtab.cxx
@@ -35,7 +35,9 @@
using namespace ::com::sun::star;
-
+namespace {
+struct theLanguageTable : public rtl::Static< SvtLanguageTable, theLanguageTable > {};
+}
SVT_DLLPUBLIC const OUString ApplyLreOrRleEmbedding( const OUString &rText )
{
@@ -152,8 +154,7 @@ const OUString SvtLanguageTable::GetString( const LanguageType eType, bool bUser
OUString SvtLanguageTable::GetLanguageString( const LanguageType eType )
{
- static const SvtLanguageTable aLangTable;
- return aLangTable.GetString( eType );
+ return theLanguageTable::get().GetString( eType );
}