From add0b7de36f4b0d133906fdd9647d742c33dd63b Mon Sep 17 00:00:00 2001 From: August Sodora Date: Mon, 19 Dec 2011 15:59:35 -0500 Subject: String->OUString --- cui/source/options/treeopt.cxx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'cui') diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 227718806c66..b790ffaeccaa 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -1181,12 +1181,15 @@ IMPL_LINK( OfaTreeOptionsDialog, SelectHdl_Impl, Timer*, EMPTYARG ) pPageInfo->m_pExtPage->ActivatePage(); } - String sTmpTitle = sTitle; - sTmpTitle += String::CreateFromAscii(" - "); - sTmpTitle += aTreeLB.GetEntryText(pParent); - sTmpTitle += String::CreateFromAscii(" - "); - sTmpTitle += aTreeLB.GetEntryText(pEntry); - SetText(sTmpTitle); + { + ::rtl::OUStringBuffer sTitleBuf(sTitle); + sTitleBuf.appendAscii(RTL_CONSTASCII_STRINGPARAM(" - ")); + sTitleBuf.append(aTreeLB.GetEntryText(pParent)); + sTitleBuf.appendAscii(RTL_CONSTASCII_STRINGPARAM(" - ")); + sTitleBuf.append(aTreeLB.GetEntryText(pEntry)); + SetText(sTitleBuf.makeStringAndClear()); + } + pCurrentPageEntry = pEntry; if ( !bForgetSelection ) { -- cgit