summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-12 13:40:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-13 11:20:23 +0100
commit6191fa0847ac5b27083efe1a8c6cd84d080a638c (patch)
treeb107ce00125d0d204e5c32f6c472e70c73182bb2 /cui
parent2e16eaf31c7a4849110020aebd5fbc97a1ab3e99 (diff)
reduce use of UniString ctor from null-terminated unicodearray
Change-Id: I98361309ada084d8f78517ce88f210d785f59cc0
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/scriptdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
index 8dc87a9af6ff..3a8b0757968a 100644
--- a/cui/source/dialogs/scriptdlg.cxx
+++ b/cui/source/dialogs/scriptdlg.cxx
@@ -535,7 +535,7 @@ SvxScriptOrgDialog::SvxScriptOrgDialog( Window* pParent, ::rtl::OUString languag
// must be a neater way to deal with the strings than as above
// append the language to the dialog title
String winTitle( GetText() );
- winTitle.SearchAndReplace( String::CreateFromAscii( "%MACROLANG" ), language.pData->buffer );
+ winTitle.SearchAndReplace( String::CreateFromAscii( "%MACROLANG" ), m_sLanguage );
SetText( winTitle );
aScriptsBox.SetSelectHdl( LINK( this, SvxScriptOrgDialog, ScriptSelectHdl ) );