diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-20 00:20:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-20 11:00:40 +0100 |
commit | b71210e55044d503853823d2bc12cb0b4d00b517 (patch) | |
tree | 227e5a738dd291095e42fb683ea45cf3163a1caa /cui | |
parent | totally pointless intermediate object (diff) | |
download | core-b71210e55044d503853823d2bc12cb0b4d00b517.tar.gz core-b71210e55044d503853823d2bc12cb0b4d00b517.zip |
totally pointless intermediate object
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/factory/cuiresmgr.cxx | 7 |
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; |