cui/source/options/treeopt.cxx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
New commits: commit add0b7de36f4b0d133906fdd9647d742c33dd63b Author: August Sodora <aug...@gmail.com> Date: Mon Dec 19 15:59:35 2011 -0500 String->OUString diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 2277188..b790ffa 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 ) { _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits