diff options
author | Jean-Noël Rouvignac <jn.rouvignac@gmail.com> | 2013-01-20 13:55:09 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-01-21 15:04:17 +0000 |
commit | 63bcb139b941a2eff1b5ad367046bca067e7d1f8 (patch) | |
tree | e3ecd8d2804dc60be4233508af0e78fdae0c9838 /svl | |
parent | d912979b4fefaaf3011fdca2005db6699ea45405 (diff) |
Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()
Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de
Reviewed-on: https://gerrit.libreoffice.org/1784
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/aeitem.cxx | 2 | ||||
-rw-r--r-- | svl/source/items/cintitem.cxx | 2 | ||||
-rw-r--r-- | svl/source/items/intitem.cxx | 2 | ||||
-rw-r--r-- | svl/source/items/rngitem_inc.cxx | 4 |
4 files changed, 4 insertions, 6 deletions
diff --git a/svl/source/items/aeitem.cxx b/svl/source/items/aeitem.cxx index ef1372082d1c..a079d99d301e 100644 --- a/svl/source/items/aeitem.cxx +++ b/svl/source/items/aeitem.cxx @@ -238,7 +238,7 @@ void SfxAllEnumItem::InsertValue( sal_uInt16 nValue ) DBG_CHKTHIS(SfxAllEnumItem, 0); SfxAllEnumValue_Impl *pVal = new SfxAllEnumValue_Impl; pVal->nValue = nValue; - pVal->aText = rtl::OUString::valueOf(static_cast<sal_Int32>(nValue)); + pVal->aText = OUString::number(nValue); if ( !pValues ) pValues = new SfxAllEnumValueArr; diff --git a/svl/source/items/cintitem.cxx b/svl/source/items/cintitem.cxx index ad016dcd9309..e9d04f838fe0 100644 --- a/svl/source/items/cintitem.cxx +++ b/svl/source/items/cintitem.cxx @@ -463,7 +463,7 @@ SfxItemPresentation CntUInt32Item::GetPresentation(SfxItemPresentation, const { DBG_CHKTHIS(CntUInt32Item, 0); - rText = rtl::OUString::valueOf(static_cast<sal_Int64>(m_nValue)); + rText = OUString::number(m_nValue); return SFX_ITEM_PRESENTATION_NAMELESS; } diff --git a/svl/source/items/intitem.cxx b/svl/source/items/intitem.cxx index d63ef94a3a15..0afc9e18f2d5 100644 --- a/svl/source/items/intitem.cxx +++ b/svl/source/items/intitem.cxx @@ -94,7 +94,7 @@ SfxItemPresentation SfxInt16Item::GetPresentation(SfxItemPresentation, const IntlWrapper *) const { DBG_CHKTHIS(SfxInt16Item, 0); - rText = rtl::OUString::valueOf(static_cast<sal_Int32>(m_nValue)); + rText = OUString::number(m_nValue); return SFX_ITEM_PRESENTATION_NAMELESS; } diff --git a/svl/source/items/rngitem_inc.cxx b/svl/source/items/rngitem_inc.cxx index e1720690624d..5db363d97471 100644 --- a/svl/source/items/rngitem_inc.cxx +++ b/svl/source/items/rngitem_inc.cxx @@ -71,9 +71,7 @@ SfxItemPresentation SfxXRangeItem::GetPresentation const IntlWrapper * ) const { - rText = rtl::OUString::valueOf(static_cast<sal_Int64>(nFrom)); - rText += ':'; - rText += rtl::OUString::valueOf(static_cast<sal_Int64>(nTo)); + rText = OUString::number(nFrom) + ":" + OUString::number(nTo); return SFX_ITEM_PRESENTATION_NAMELESS; } |