Kaydet (Commit) c43d7d05 authored tarafından Caolán McNamara's avatar Caolán McNamara

Pointless to convert char* to OString and back

üst 377c162b
......@@ -46,10 +46,7 @@ static ResMgr* pResMgr=0;
ResMgr* DialogsResMgr::GetResMgr()
{
if ( !pResMgr )
{
ByteString aName( "svx" );
pResMgr = ResMgr::CreateResMgr( aName.GetBuffer(), Application::GetSettings().GetUILocale() );
}
pResMgr = ResMgr::CreateResMgr( "svx", Application::GetSettings().GetUILocale() );
return pResMgr;
}
......
......@@ -810,10 +810,8 @@ namespace svxform
{
// create a resource manager, for the svx resource file
// and the UI locale
ByteString aResourceFile( "svx" );
ResMgr* pResMgr = ResMgr::CreateResMgr(
aResourceFile.GetBuffer(),
Application::GetSettings().GetUILocale() );
"svx", Application::GetSettings().GetUILocale() );
// load the resources for the AddSubmission modal dialog.
// This will create our own resource context.
......
......@@ -76,9 +76,8 @@ ResMgr* GetGalleryResMgr()
if( !pGalleryResMgr )
{
ByteString aResMgrName( "gal" );
pGalleryResMgr = ResMgr::CreateResMgr(
aResMgrName.GetBuffer(), Application::GetSettings().GetUILocale() );
"gal", Application::GetSettings().GetUILocale() );
}
return pGalleryResMgr;
......
......@@ -671,9 +671,8 @@ ResMgr* ImpGetResMgr()
if(!rGlobalData.pResMgr)
{
ByteString aName("svx");
rGlobalData.pResMgr =
ResMgr::CreateResMgr( aName.GetBuffer(), Application::GetSettings().GetUILocale() );
ResMgr::CreateResMgr( "svx", Application::GetSettings().GetUILocale() );
}
return rGlobalData.pResMgr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment