diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-16 07:50:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-16 15:21:36 +0100 |
commit | 437c4984dbffbc531e1eeddf9c3b8f415f404c59 (patch) | |
tree | 7359d1012b12026f66807eb7a25acb05b4f21c15 /svl/source/items/aeitem.cxx | |
parent | 2c676c03f3e09c12b8524f2a803374b9f68b2c83 (diff) |
upgrade GetValueTextByPos family to rtl::OUString
Diffstat (limited to 'svl/source/items/aeitem.cxx')
-rw-r--r-- | svl/source/items/aeitem.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/items/aeitem.cxx b/svl/source/items/aeitem.cxx index 66886545dbc5..5f66cbfab93e 100644 --- a/svl/source/items/aeitem.cxx +++ b/svl/source/items/aeitem.cxx @@ -43,7 +43,7 @@ TYPEINIT1_AUTOFACTORY(SfxAllEnumItem, SfxEnumItem) struct SfxAllEnumValue_Impl { sal_uInt16 nValue; - XubString aText; + rtl::OUString aText; }; SV_DECL_PTRARR_DEL(SfxAllEnumValueArr, SfxAllEnumValue_Impl*, 0) @@ -139,7 +139,7 @@ sal_uInt16 SfxAllEnumItem::GetValueCount() const // ----------------------------------------------------------------------- -XubString SfxAllEnumItem::GetValueTextByPos( sal_uInt16 nPos ) const +rtl::OUString SfxAllEnumItem::GetValueTextByPos( sal_uInt16 nPos ) const { DBG_CHKTHIS(SfxAllEnumItem, 0); DBG_ASSERT( pValues && nPos < pValues->Count(), "enum overflow" ); @@ -219,7 +219,7 @@ sal_uInt16 SfxAllEnumItem::GetPosByValue( sal_uInt16 nValue ) const // ----------------------------------------------------------------------- -void SfxAllEnumItem::InsertValue( sal_uInt16 nValue, const XubString &rValue ) +void SfxAllEnumItem::InsertValue( sal_uInt16 nValue, const rtl::OUString &rValue ) { DBG_CHKTHIS(SfxAllEnumItem, 0); SfxAllEnumValue_Impl *pVal = new SfxAllEnumValue_Impl; @@ -242,7 +242,7 @@ void SfxAllEnumItem::InsertValue( sal_uInt16 nValue ) DBG_CHKTHIS(SfxAllEnumItem, 0); SfxAllEnumValue_Impl *pVal = new SfxAllEnumValue_Impl; pVal->nValue = nValue; - pVal->aText = XubString::CreateFromInt32( nValue ); + pVal->aText = rtl::OUString::valueOf(static_cast<sal_Int32>(nValue)); const SfxAllEnumValue_Impl *pTemp = pVal; if ( !pValues ) pValues = new SfxAllEnumValueArr; |