summaryrefslogtreecommitdiff
path: root/cui/source
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 /cui/source
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 'cui/source')
-rw-r--r--cui/source/tabpages/chardlg.cxx15
-rw-r--r--cui/source/tabpages/numfmt.cxx8
-rw-r--r--cui/source/tabpages/numpages.cxx4
-rw-r--r--cui/source/tabpages/tpcolor.cxx2
4 files changed, 13 insertions, 16 deletions
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index 123079ba5cde..9d444d45a3a2 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -3256,15 +3256,12 @@ sal_Bool SvxCharPositionPage::FillItemSet( SfxItemSet& rSet )
void SvxCharPositionPage::FillUserData()
{
- const sal_Unicode cTok = ';';
-
- OUString sUser( OUString::valueOf( static_cast<sal_Int32>(m_nSuperEsc)) );
- sUser += OUString( cTok );
- sUser += OUString::valueOf( static_cast<sal_Int32>(m_nSubEsc) );
- sUser += OUString (cTok );
- sUser += OUString::valueOf( static_cast<sal_Int32>(m_nSuperProp) );
- sUser += OUString ( cTok );
- sUser += OUString::valueOf( static_cast<sal_Int32>(m_nSubProp) );
+ const OUString cTok( ";" );
+
+ OUString sUser = OUString::number( m_nSuperEsc ) + cTok +
+ OUString::number( m_nSubEsc ) + cTok +
+ OUString::number( m_nSuperProp ) + cTok +
+ OUString::number( m_nSubProp );
SetUserData( sUser );
}
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index 03dcc8d298e4..4dad881a70d3 100644
--- a/cui/source/tabpages/numfmt.cxx
+++ b/cui/source/tabpages/numfmt.cxx
@@ -972,8 +972,8 @@ void SvxNumberFormatTabPage::UpdateOptions_Impl( sal_Bool bCheckCatChange /*= sa
m_pEdLeadZeroes->Enable();
m_pBtnNegRed->Enable();
m_pBtnThousand->Enable();
- m_pEdDecimals->SetText( OUString::valueOf( static_cast<sal_Int32>(nDecimals) ) );
- m_pEdLeadZeroes->SetText( OUString::valueOf( static_cast<sal_Int32>(nZeroes) ) );
+ m_pEdDecimals->SetText( OUString::number( nDecimals ) );
+ m_pEdLeadZeroes->SetText( OUString::number( nZeroes ) );
m_pBtnNegRed->Check( bNegRed );
m_pBtnThousand->Check( bThousand );
break;
@@ -994,8 +994,8 @@ void SvxNumberFormatTabPage::UpdateOptions_Impl( sal_Bool bCheckCatChange /*= sa
m_pEdLeadZeroes->Disable();
m_pBtnNegRed->Disable();
m_pBtnThousand->Disable();
- m_pEdDecimals->SetText( OUString::valueOf( static_cast<sal_Int32>(0) ) );
- m_pEdLeadZeroes->SetText( OUString::valueOf( static_cast<sal_Int32>(0) ) );
+ m_pEdDecimals->SetText( OUString::number( 0 ) );
+ m_pEdLeadZeroes->SetText( OUString::number( 0 ) );
m_pBtnNegRed->Check( sal_False );
m_pBtnThousand->Check( sal_False );
}
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx
index b7bd0723d7ab..8e9fc4a6400b 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -1266,7 +1266,7 @@ void SvxNumOptionsTabPage::Reset( const SfxItemSet& rSet )
if(!m_pLevelLB->GetEntryCount())
{
for(sal_uInt16 i = 1; i <= pSaveNum->GetLevelCount(); i++)
- m_pLevelLB->InsertEntry( OUString::valueOf(static_cast<sal_Int32>(i)));
+ m_pLevelLB->InsertEntry( OUString::number(i));
if(pSaveNum->GetLevelCount() > 1)
{
OUString sEntry( "1 - " );
@@ -3018,7 +3018,7 @@ void SvxNumPositionTabPage::Reset( const SfxItemSet& rSet )
if(!m_pLevelLB->GetEntryCount())
{
for(sal_uInt16 i = 1; i <= pSaveNum->GetLevelCount(); i++)
- m_pLevelLB->InsertEntry( OUString::valueOf(static_cast<sal_Int32>(i)) );
+ m_pLevelLB->InsertEntry( OUString::number(i) );
if(pSaveNum->GetLevelCount() > 1)
{
OUString sEntry( "1 - " );
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx
index 9f4f98d37885..896899728b9b 100644
--- a/cui/source/tabpages/tpcolor.cxx
+++ b/cui/source/tabpages/tpcolor.cxx
@@ -1223,7 +1223,7 @@ sal_uInt16 SvxColorTabPage::PercentToColor_Impl( sal_uInt16 nPercent )
void SvxColorTabPage::FillUserData()
{
// the color model is saved in the Ini-file
- SetUserData( OUString::valueOf( static_cast<sal_Int32>(eCM) ) );
+ SetUserData( OUString::number( eCM ) );
}
//------------------------------------------------------------------------