summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2013-09-17 22:24:28 +0200
committerIvan Timofeev <timofeev.i.s@gmail.com>2013-09-20 13:19:01 +0400
commit2232781ad303864b79a3973b5b0eec40a859a701 (patch)
treece103ed8565db1f58bc6c9667aac6fef7d9e2c84 /svx
parent028a9096406eba26f823211b1f6a957ebc6b3a7b (diff)
String to OUString in itemwin.cxx
Change-Id: If82112acaecbdbb05d2499b2c0eaf2066b707571
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/itemwin.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/svx/source/tbxctrls/itemwin.cxx b/svx/source/tbxctrls/itemwin.cxx
index daa035b3e654..6435eaa2553d 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 );