summaryrefslogtreecommitdiff
path: root/cui/source/options
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-08-21 15:07:31 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-08-21 15:10:35 +0200
commit64b993e046f23baaacaff1572b7d2a816588b5ef (patch)
tree237dce36a1d4787d168a0520839f6aab22500487 /cui/source/options
parent75f41baab6ce75786a91fe461835ee16a23ec18e (diff)
finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
Diffstat (limited to 'cui/source/options')
-rw-r--r--cui/source/options/optaboutconfig.cxx6
-rw-r--r--cui/source/options/webconninfo.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx
index 2e9c67069e82..9084b8dc03bb 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -202,7 +202,7 @@ void CuiAboutConfigTabPage::FillItems( Reference< XNameAccess >xNameAccess, OUSt
sal_Int32 nVal = 0;
if(aProp >>= nVal)
{
- OUString aNumber( OUString::valueOf( nVal ) );
+ OUString aNumber( OUString::number( nVal ) );
sValue = aNumber;
}
}
@@ -213,7 +213,7 @@ void CuiAboutConfigTabPage::FillItems( Reference< XNameAccess >xNameAccess, OUSt
sal_Bool bVal = sal_False;
if(aProp >>= bVal )
{
- OUString sBoolean( OUString::valueOf( bVal ) );
+ OUString sBoolean( OUString::boolean( bVal ) );
sValue = sBoolean;
}
}
@@ -242,7 +242,7 @@ void CuiAboutConfigTabPage::FillItems( Reference< XNameAccess >xNameAccess, OUSt
{
for(sal_Int16 nInd=0; nInd < seqLong.getLength(); ++nInd)
{
- OUString sNumber( OUString::valueOf(seqLong[nInd]) );
+ OUString sNumber( OUString::number(seqLong[nInd]) );
sValue += sNumber;
sValue += OUString(",");
}
diff --git a/cui/source/options/webconninfo.cxx b/cui/source/options/webconninfo.cxx
index 7ba03b9d3f14..189ead276ab0 100644
--- a/cui/source/options/webconninfo.cxx
+++ b/cui/source/options/webconninfo.cxx
@@ -173,7 +173,7 @@ void WebConnectionInfoDialog::FillPasswordList()
for ( sal_Int32 nUserInd = 0; nUserInd < aURLEntries[nURLInd].UserList.getLength(); nUserInd++ )
{
OUString aUIEntry( aURLEntries[nURLInd].Url );
- aUIEntry += OUString::valueOf( (sal_Unicode)'\t' );
+ aUIEntry += OUString( (sal_Unicode)'\t' );
aUIEntry += aURLEntries[nURLInd].UserList[nUserInd].UserName;
SvTreeListEntry* pEntry = m_pPasswordsLB->InsertEntry( aUIEntry );
pEntry->SetUserData( (void*)(sal_IntPtr)(nCount++) );
@@ -189,7 +189,7 @@ void WebConnectionInfoDialog::FillPasswordList()
for ( sal_Int32 nURLIdx = 0; nURLIdx < aUrls.getLength(); nURLIdx++ )
{
OUString aUIEntry( aUrls[ nURLIdx ] );
- aUIEntry += OUString::valueOf( (sal_Unicode)'\t' );
+ aUIEntry += OUString( (sal_Unicode)'\t' );
aUIEntry += OUString( "*" );
SvTreeListEntry* pEntry = m_pPasswordsLB->InsertEntry( aUIEntry );
pEntry->SetUserData( (void*)(sal_IntPtr)(nCount++) );