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; ...@@ -46,10 +46,7 @@ static ResMgr* pResMgr=0;
ResMgr* DialogsResMgr::GetResMgr() ResMgr* DialogsResMgr::GetResMgr()
{ {
if ( !pResMgr ) if ( !pResMgr )
{ pResMgr = ResMgr::CreateResMgr( "svx", Application::GetSettings().GetUILocale() );
ByteString aName( "svx" );
pResMgr = ResMgr::CreateResMgr( aName.GetBuffer(), Application::GetSettings().GetUILocale() );
}
return pResMgr; return pResMgr;
} }
......
...@@ -810,10 +810,8 @@ namespace svxform ...@@ -810,10 +810,8 @@ namespace svxform
{ {
// create a resource manager, for the svx resource file // create a resource manager, for the svx resource file
// and the UI locale // and the UI locale
ByteString aResourceFile( "svx" );
ResMgr* pResMgr = ResMgr::CreateResMgr( ResMgr* pResMgr = ResMgr::CreateResMgr(
aResourceFile.GetBuffer(), "svx", Application::GetSettings().GetUILocale() );
Application::GetSettings().GetUILocale() );
// load the resources for the AddSubmission modal dialog. // load the resources for the AddSubmission modal dialog.
// This will create our own resource context. // This will create our own resource context.
......
...@@ -76,9 +76,8 @@ ResMgr* GetGalleryResMgr() ...@@ -76,9 +76,8 @@ ResMgr* GetGalleryResMgr()
if( !pGalleryResMgr ) if( !pGalleryResMgr )
{ {
ByteString aResMgrName( "gal" );
pGalleryResMgr = ResMgr::CreateResMgr( pGalleryResMgr = ResMgr::CreateResMgr(
aResMgrName.GetBuffer(), Application::GetSettings().GetUILocale() ); "gal", Application::GetSettings().GetUILocale() );
} }
return pGalleryResMgr; return pGalleryResMgr;
......
...@@ -671,9 +671,8 @@ ResMgr* ImpGetResMgr() ...@@ -671,9 +671,8 @@ ResMgr* ImpGetResMgr()
if(!rGlobalData.pResMgr) if(!rGlobalData.pResMgr)
{ {
ByteString aName("svx");
rGlobalData.pResMgr = rGlobalData.pResMgr =
ResMgr::CreateResMgr( aName.GetBuffer(), Application::GetSettings().GetUILocale() ); ResMgr::CreateResMgr( "svx", Application::GetSettings().GetUILocale() );
} }
return rGlobalData.pResMgr; 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