From e6f6020fe9f136ad105ead17b74e0a2f7ba26b9b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 1 Mar 2011 13:04:30 +0000 Subject: Pointless to convert char* to OString and back --- reportdesign/source/core/resource/core_resource.cxx | 3 +-- reportdesign/source/core/sdr/ModuleHelper.cxx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'reportdesign') diff --git a/reportdesign/source/core/resource/core_resource.cxx b/reportdesign/source/core/resource/core_resource.cxx index 90db1ef61e91..c854a9987742 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 d132304be477..9c78d9efc35d 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; } -- cgit v1.2.3