diff options
author | Eike Rathke <erack@redhat.com> | 2014-04-17 23:23:40 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-04-17 23:45:54 +0200 |
commit | 709b4e653c29f87caaeef16ebe20237fbf65218f (patch) | |
tree | 961178d33411328b85f4936ce332015692dfe2ea /svtools | |
parent | 5fd534de054876486a9620eced5e27faeee9eb05 (diff) |
have a "better" static
Change-Id: Ib978d24b5188482242101d3a352f29d604b36c90
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/langtab.cxx | 7 |
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 ); } |