summaryrefslogtreecommitdiff
path: root/cui/source/factory
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/factory')
-rw-r--r--cui/source/factory/cuiresmgr.cxx7
-rw-r--r--cui/source/factory/dlgfact.cxx1
2 files changed, 3 insertions, 5 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;
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index 49163e6034fc..5296dd5c01b9 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -40,7 +40,6 @@
#include "splitcelldlg.hxx"
#include "gallery.hrc"
#include "dstribut.hxx"
-#include "cuigaldlg.hxx"
#include "cuiimapwnd.hxx"
#include "hlmarkwn.hxx"
#include "cuicharmap.hxx"