summaryrefslogtreecommitdiff
path: root/reportdesign
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
commite6f6020fe9f136ad105ead17b74e0a2f7ba26b9b (patch)
tree29d7896697c007cf26a8be28124387f109371635 /reportdesign
parent2a794186d83f7b04981813a74ccf277150712a8d (diff)
Pointless to convert char* to OString and back
Diffstat (limited to 'reportdesign')
-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 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;
}