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 /svtools | |
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 'svtools')
-rw-r--r-- | svtools/source/brwbox/datwin.cxx | 4 | ||||
-rw-r--r-- | svtools/source/control/calendar.cxx | 4 | ||||
-rw-r--r-- | svtools/source/control/ruler.cxx | 2 | ||||
-rw-r--r-- | svtools/source/misc/transfer.cxx | 2 | ||||
-rw-r--r-- | svtools/source/uno/wizard/wizardshell.cxx | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx index 9fa22a8936f3..2f2543c9ef30 100644 --- a/svtools/source/brwbox/datwin.cxx +++ b/svtools/source/brwbox/datwin.cxx @@ -726,12 +726,12 @@ void BrowserScrollBar::Tracking( const TrackingEvent& rTEvt ) sal_uLong nPos = GetThumbPos(); if ( nPos != _nLastPos ) { - String aTip( rtl::OUString::valueOf(static_cast<sal_Int32>(nPos)) ); + String aTip( OUString::number(nPos) ); aTip += '/'; if ( _pDataWin->GetRealRowCount().Len() ) aTip += _pDataWin->GetRealRowCount(); else - aTip += rtl::OUString::valueOf(static_cast<sal_Int32>(GetRangeMax())); + aTip += OUString::number(GetRangeMax()); Rectangle aRect( GetPointerPosPixel(), Size( GetTextHeight(), GetTextWidth( aTip ) ) ); if ( _nTip ) diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx index 6ddec6892bef..83955ae72505 100644 --- a/svtools/source/control/calendar.cxx +++ b/svtools/source/control/calendar.cxx @@ -894,7 +894,7 @@ void Calendar::ImplDraw( sal_Bool bPaint ) String aMonthText( maCalendarWrapper.getDisplayName( i18n::CalendarDisplayIndex::MONTH, nMonth-1, 1)); aMonthText += ' '; - aMonthText += rtl::OUString::valueOf(static_cast<sal_Int64>(nYear)); + aMonthText += OUString::number(nYear); long nMonthTextWidth = GetTextWidth( aMonthText ); long nMonthOffX1 = 0; long nMonthOffX2 = 0; @@ -912,7 +912,7 @@ void Calendar::ImplDraw( sal_Bool bPaint ) aMonthText = maCalendarWrapper.getDisplayName( i18n::CalendarDisplayIndex::MONTH, nMonth-1, 0); aMonthText += ' '; - aMonthText += rtl::OUString::valueOf(static_cast<sal_Int64>(nYear)); + aMonthText += OUString::number(nYear); nMonthTextWidth = GetTextWidth( aMonthText ); } long nTempOff = (mnMonthWidth-nMonthTextWidth+1)/2; diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index b99b90381a09..99a8697472b4 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -497,7 +497,7 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter ) nMaxWidth /= nTickUnit; else nMaxWidth /= aImplRulerUnitTab[mnUnitIndex].nTickUnit; - OUString aNumStr = OUString::valueOf(static_cast<sal_Int32>(nMaxWidth)); + OUString aNumStr = OUString::number(nMaxWidth); long nTxtWidth = GetTextWidth( aNumStr ); const long nTextOff = 4; if ( nTickWidth < nTxtWidth+nTextOff ) diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index 81a679da5c02..6e6cda2144ef 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -186,7 +186,7 @@ static ::rtl::OUString ImplGetParameterString( const TransferableObjectDescripto } aParams += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ";viewaspect=\"" )); - aParams += ::rtl::OUString::valueOf( static_cast< sal_Int32 >( rObjDesc.mnViewAspect ) ); + aParams += OUString::number( rObjDesc.mnViewAspect ); aParams += aChar; aParams += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ";width=\"" )); diff --git a/svtools/source/uno/wizard/wizardshell.cxx b/svtools/source/uno/wizard/wizardshell.cxx index 9a05f8b9fed3..bed76045a415 100644 --- a/svtools/source/uno/wizard/wizardshell.cxx +++ b/svtools/source/uno/wizard/wizardshell.cxx @@ -229,7 +229,7 @@ namespace svt { namespace uno DBG_UNHANDLED_EXCEPTION(); } // fallback for ill-behaved clients: the numeric state - return rtl::OUString::valueOf(static_cast<sal_Int32>(i_nState)); + return OUString::number(i_nState); } //------------------------------------------------------------------------------------------------------------------ |