[Libreoffice-commits] .: cui/source

August Sodora augsod at kemper.freedesktop.org
Mon Dec 19 18:36:42 PST 2011


 cui/source/options/treeopt.cxx |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

New commits:
commit add0b7de36f4b0d133906fdd9647d742c33dd63b
Author: August Sodora <augsod at 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 )
     {


More information about the Libreoffice-commits mailing list