summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJean-Noël Rouvignac <jn.rouvignac@gmail.com>2013-01-20 13:55:09 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-01-21 15:04:17 +0000
commit63bcb139b941a2eff1b5ad367046bca067e7d1f8 (patch)
treee3ecd8d2804dc60be4233508af0e78fdae0c9838 /sd
parentd912979b4fefaaf3011fdca2005db6699ea45405 (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 'sd')
-rw-r--r--sd/source/core/drawdoc4.cxx2
-rw-r--r--sd/source/filter/eppt/pptexsoundcollection.cxx4
-rw-r--r--sd/source/filter/ppt/pptin.cxx2
-rw-r--r--sd/source/ui/animations/CustomAnimationCreateDialog.cxx4
-rw-r--r--sd/source/ui/dlg/copydlg.cxx12
-rw-r--r--sd/source/ui/func/fuprobjs.cxx2
6 files changed, 13 insertions, 13 deletions
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index 3e1b1e197128..3758a19fca43 100644
--- a/sd/source/core/drawdoc4.cxx
+++ b/sd/source/core/drawdoc4.cxx
@@ -1129,7 +1129,7 @@ String SdDrawDocument::CreatePageNumValue(sal_uInt16 nNum) const
aPageNumValue += sal_Unicode(' ');
break;
default:
- aPageNumValue += rtl::OUString::valueOf(static_cast<sal_Int32>(nNum));
+ aPageNumValue += OUString::number(nNum);
}
return(aPageNumValue);
diff --git a/sd/source/filter/eppt/pptexsoundcollection.cxx b/sd/source/filter/eppt/pptexsoundcollection.cxx
index 9502fa2a6ce0..3519ed516d1d 100644
--- a/sd/source/filter/eppt/pptexsoundcollection.cxx
+++ b/sd/source/filter/eppt/pptexsoundcollection.cxx
@@ -78,7 +78,7 @@ sal_uInt32 ExSoundEntry::GetSize( sal_uInt32 nId ) const
if ( !aExtension.isEmpty() ) // String Atom ( instance 1 - extension of sound )
nSize += aExtension.getLength() * 2 + 8;
- rtl::OUString aId( rtl::OUString::valueOf(static_cast<sal_Int32>(nId)) ); // String Atom ( instance 2 - reference id )
+ rtl::OUString aId( OUString::number(nId) ); // String Atom ( instance 2 - reference id )
nSize += 2 * aId.getLength() + 8;
nSize += nFileSize + 8; // SoundData Atom
@@ -116,7 +116,7 @@ void ExSoundEntry::Write( SvStream& rSt, sal_uInt32 nId ) const
rSt << aExtension[i];
}
// id of sound ( instance 2 )
- rtl::OUString aId( rtl::OUString::valueOf(static_cast<sal_Int32>(nId) ) );
+ rtl::OUString aId( OUString::number(nId ) );
sal_Int32 nIdLen = aId.getLength();
rSt << (sal_uInt32)( ( EPP_CString << 16 ) | 32 ) << (sal_uInt32)( nIdLen * 2 );
for ( i = 0; i < nIdLen; ++i )
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index 8fa0545e430f..ac3f1a564319 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -1875,7 +1875,7 @@ String ImplSdPPTImport::ReadSound(sal_uInt32 nSoundRef) const
}
if ( bRefStrValid )
{
- if ( rtl::OUString::valueOf(static_cast<sal_Int32>(nSoundRef)) == aRefStr )
+ if ( OUString::number(nSoundRef) == aRefStr )
{
rStCtrl.Seek( nPosMerk2 );
if ( SeekToRec( rStCtrl, PPT_PST_CString, nStrLen, NULL, 0 ) )
diff --git a/sd/source/ui/animations/CustomAnimationCreateDialog.cxx b/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
index 64d30dde7266..08bc6eae3122 100644
--- a/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
@@ -648,7 +648,7 @@ Window * lcl_GetTopmostParent( Window * pWindow )
void CustomAnimationCreateDialog::setPosition()
{
SvtViewOptions aDlgOpt(
- E_TABDIALOG, rtl::OUString::valueOf(static_cast<sal_Int32>(DLG_CUSTOMANIMATION_CREATE)));
+ E_TABDIALOG, OUString::number(DLG_CUSTOMANIMATION_CREATE));
if ( aDlgOpt.Exists() )
{
SetWindowState( rtl::OUStringToOString(aDlgOpt.GetWindowState(),
@@ -676,7 +676,7 @@ void CustomAnimationCreateDialog::storePosition()
{
// save settings (screen position and current page)
SvtViewOptions aDlgOpt(
- E_TABDIALOG, rtl::OUString::valueOf(static_cast<sal_Int32>(DLG_CUSTOMANIMATION_CREATE)));
+ E_TABDIALOG, OUString::number(DLG_CUSTOMANIMATION_CREATE));
aDlgOpt.SetWindowState(OStringToOUString(
GetWindowState(WINDOWSTATE_MASK_POS), RTL_TEXTENCODING_ASCII_US));
}
diff --git a/sd/source/ui/dlg/copydlg.cxx b/sd/source/ui/dlg/copydlg.cxx
index 7fc0c58e55a9..5edfc96452ab 100644
--- a/sd/source/ui/dlg/copydlg.cxx
+++ b/sd/source/ui/dlg/copydlg.cxx
@@ -124,22 +124,22 @@ CopyDlg::~CopyDlg()
{
String& rStr = GetExtraData();
- rStr = OUString::valueOf(static_cast<sal_Int64>(maNumFldCopies.GetValue()));
+ rStr = OUString::number(maNumFldCopies.GetValue());
rStr.Append( TOKEN );
- rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldMoveX.GetValue()));
+ rStr += OUString::number(maMtrFldMoveX.GetValue());
rStr.Append( TOKEN );
- rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldMoveY.GetValue()));
+ rStr += OUString::number(maMtrFldMoveY.GetValue());
rStr.Append( TOKEN );
- rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldAngle.GetValue()));
+ rStr += OUString::number(maMtrFldAngle.GetValue());
rStr.Append( TOKEN );
- rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldWidth.GetValue()));
+ rStr += OUString::number(maMtrFldWidth.GetValue());
rStr.Append( TOKEN );
- rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldHeight.GetValue()));
+ rStr += OUString::number(maMtrFldHeight.GetValue());
rStr.Append( TOKEN );
rStr += OUString::valueOf( (long)maLbStartColor.GetSelectEntryColor().GetColor() );
diff --git a/sd/source/ui/func/fuprobjs.cxx b/sd/source/ui/func/fuprobjs.cxx
index 5ce8eb525898..899b75e6d261 100644
--- a/sd/source/ui/func/fuprobjs.cxx
+++ b/sd/source/ui/func/fuprobjs.cxx
@@ -138,7 +138,7 @@ void FuPresentationObjects::DoExecute( SfxRequest& )
String aStr(SdResId( STR_LAYOUT_OUTLINE ));
aStyleName.Append( aStr );
aStyleName.Append( sal_Unicode(' ') );
- aStyleName.Append( OUString::valueOf( static_cast<sal_Int32>( nDepth ) ) );
+ aStyleName.Append( OUString::number( nDepth ) );
}
SfxStyleSheetBasePool* pStyleSheetPool = mpDocSh->GetStyleSheetPool();