summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-01 14:49:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-01 20:34:28 +0000
commit75a2294560380a829a24ebb6f20ef6da00d17aa6 (patch)
tree49b309ed32516fe0dd53c2fa6d56e082f0a507c8 /cui
parent28b84d7deb72a8d4a3b80d52ec3f0f73ec2f1f43 (diff)
pointless to go from char* to OString to char*
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/treeopt.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index 34312f383aca..4a54bfd4a42b 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -837,13 +837,11 @@ void OfaTreeOptionsDialog::InitTreeAndHandler()
{
aTreeLB.SetNodeDefaultImages();
- String sResName = String::CreateFromAscii( "iso" );
- ResMgr* pIsoRes = ResMgr::CreateResMgr( ::rtl::OUStringToOString( sResName, RTL_TEXTENCODING_UTF8 ) );
+ ResMgr* pIsoRes = ResMgr::CreateResMgr( "iso" );
if ( !pIsoRes )
{
// Fallback: Use ooo resource file
- String sOOoName = String::CreateFromAscii( "ooo" );
- pIsoRes = ResMgr::CreateResMgr( ::rtl::OUStringToOString( sOOoName, RTL_TEXTENCODING_UTF8 ) );
+ pIsoRes = ResMgr::CreateResMgr("ooo");
}
//! ResMgr* pIsoRes = SFX_APP()->GetLabelResManager();