summaryrefslogtreecommitdiff
path: root/cui/source/factory
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-20 00:20:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-20 11:00:40 +0100
commitb71210e55044d503853823d2bc12cb0b4d00b517 (patch)
tree227e5a738dd291095e42fb683ea45cf3163a1caa /cui/source/factory
parent443756d3c4c19456547ced34a27cb522178df19d (diff)
totally pointless intermediate object
Diffstat (limited to 'cui/source/factory')
-rw-r--r--cui/source/factory/cuiresmgr.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/cui/source/factory/cuiresmgr.cxx b/cui/source/factory/cuiresmgr.cxx
index c04206ccb63b..8e3bc3140f1a 100644
--- a/cui/source/factory/cuiresmgr.cxx
+++ b/cui/source/factory/cuiresmgr.cxx
@@ -33,15 +33,14 @@
#include <svl/solar.hrc>
#include <vcl/svapp.hxx>
-static ResMgr* pResMgr=0;
-
// struct DialogsResMgr --------------------------------------------------
ResMgr* CuiResMgr::GetResMgr()
{
+ static ResMgr* pResMgr=0;
+
if ( !pResMgr )
{
- ByteString aName( "cui" );
- pResMgr = ResMgr::CreateResMgr( aName.GetBuffer(), Application::GetSettings().GetUILocale() );
+ pResMgr = ResMgr::CreateResMgr("cui", Application::GetSettings().GetUILocale());
}
return pResMgr;