summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-01 13:04:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-01 20:34:03 +0000
commite4ce526ebcb5448f729cf9f8e5d49a3eaa2234df (patch)
tree85b0f52c15051a6c025a334ca55e95da0cbd0732
parent1e58b993fdd59baba3dac293cf77406d65290364 (diff)
Pointless to convert char* to OString and back
-rw-r--r--reportdesign/source/core/resource/core_resource.cxx3
-rw-r--r--reportdesign/source/core/sdr/ModuleHelper.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/reportdesign/source/core/resource/core_resource.cxx b/reportdesign/source/core/resource/core_resource.cxx
index c7e6641e5..1af6c878a 100644
--- a/reportdesign/source/core/resource/core_resource.cxx
+++ b/reportdesign/source/core/resource/core_resource.cxx
@@ -66,8 +66,7 @@ namespace reportdesign
::com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILocale();
- rtl::OString sResLibName = rtl::OString( "rpt" );
- m_pImpl = SimpleResMgr::Create(sResLibName, aLocale);
+ m_pImpl = SimpleResMgr::Create("rpt", aLocale);
}
}
diff --git a/reportdesign/source/core/sdr/ModuleHelper.cxx b/reportdesign/source/core/sdr/ModuleHelper.cxx
index c823aed32..1e3873e79 100644
--- a/reportdesign/source/core/sdr/ModuleHelper.cxx
+++ b/reportdesign/source/core/sdr/ModuleHelper.cxx
@@ -90,8 +90,7 @@ ResMgr* OModuleImpl::getResManager()
if (!m_pRessources)
{
// create a manager with a fixed prefix
- rtl::OString sName = rtl::OString( "rptui" );
- m_pRessources = ResMgr::CreateResMgr(sName);
+ m_pRessources = ResMgr::CreateResMgr("rptui");
}
return m_pRessources;
}