summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-12-19 15:59:35 -0500
committerAugust Sodora <augsod@gmail.com>2011-12-19 21:34:46 -0500
commitadd0b7de36f4b0d133906fdd9647d742c33dd63b (patch)
treeb5288abe7bd8eecb35bf47093acf77cbb3a67380 /cui
parent7f56bfc31ce5ca2e7fa1678de2c924b8107967c5 (diff)
String->OUString
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/treeopt.cxx15
1 files changed, 9 insertions, 6 deletions
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 )
{