svx/source/tbxctrls/itemwin.cxx |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

New commits:
commit 2232781ad303864b79a3973b5b0eec40a859a701
Author: Laurent Balland-Poirier <laurent.balland-poir...@laposte.net>
Date:   Tue Sep 17 22:24:28 2013 +0200

    String to OUString in itemwin.cxx
    
    Change-Id: If82112acaecbdbb05d2499b2c0eaf2066b707571

diff --git a/svx/source/tbxctrls/itemwin.cxx b/svx/source/tbxctrls/itemwin.cxx
index daa035b..6435eaa 100644
--- a/svx/source/tbxctrls/itemwin.cxx
+++ b/svx/source/tbxctrls/itemwin.cxx
@@ -301,7 +301,7 @@ void SvxColorBox::Update( const XLineColorItem* pItem )
     {
       // fdo#64455
         ::Color aColor = pItem->GetColorValue();
-        String aString( pItem->GetName() );
+        OUString aString( pItem->GetName() );
         SelectEntry(aString);
         if( GetSelectEntryPos() == LISTBOX_ENTRY_NOTFOUND ||
             GetSelectEntryColor() != aColor )
@@ -313,20 +313,18 @@ void SvxColorBox::Update( const XLineColorItem* pItem )
             GetSelectEntryColor() != aColor )
         {
             sal_uInt16 nCount = GetEntryCount();
-            String aTmpStr;
+            OUString aTmpStr;
             if( nCount > 0 )
             {
                 // Last entry gets tested against temporary color
                 aTmpStr = GetEntry( nCount - 1 );
-                if(  aTmpStr.GetChar(0) == TMP_STR_BEGIN &&
-                     aTmpStr.GetChar(aTmpStr.Len()-1) == TMP_STR_END )
+                if(  aTmpStr[0] == TMP_STR_BEGIN &&
+                     aTmpStr[aTmpStr.getLength()-1] == TMP_STR_END )
                 {
                     RemoveEntry( nCount - 1 );
                 }
             }
-            aTmpStr = TMP_STR_BEGIN;
-            aTmpStr += aString;
-            aTmpStr += TMP_STR_END;
+            aTmpStr = OUString(TMP_STR_BEGIN) + aString + 
OUString(TMP_STR_END);
 
             sal_uInt16 nPos = InsertEntry( aColor, aTmpStr );
             SelectEntryPos( nPos );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to