summaryrefslogtreecommitdiff
path: root/sfx2/source/bastyp/sfxresid.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/bastyp/sfxresid.cxx')
-rw-r--r--sfx2/source/bastyp/sfxresid.cxx21
1 files changed, 2 insertions, 19 deletions
diff --git a/sfx2/source/bastyp/sfxresid.cxx b/sfx2/source/bastyp/sfxresid.cxx
index 3aa36da218f9..9189ec73558e 100644
--- a/sfx2/source/bastyp/sfxresid.cxx
+++ b/sfx2/source/bastyp/sfxresid.cxx
@@ -19,29 +19,12 @@
#include <sfx2/sfxresid.hxx>
-#include <tools/solar.h>
#include "unotools/resmgr.hxx"
-static std::locale* pResLocale = nullptr;
-
-std::locale* SfxResLocale::GetResLocale()
-{
- if (!pResLocale)
- {
- pResLocale = new std::locale(Translate::Create("sfx"));
- }
-
- return pResLocale;
-}
-
-void SfxResLocale::DeleteResLocale()
-{
- DELETEZ(pResLocale);
-}
-
OUString SfxResId(const char* pId)
{
- return Translate::get(pId, *SfxResLocale::GetResLocale());
+ static std::locale loc = Translate::Create("sfx");
+ return Translate::get(pId, loc);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */