have a "better" static

Change-Id: Ib978d24b5188482242101d3a352f29d604b36c90
This commit is contained in:
Eike Rathke
2014-04-17 23:23:40 +02:00
parent 5fd534de05
commit 709b4e653c

View File

@@ -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 );
}