diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-08-21 15:07:31 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-08-21 15:10:35 +0200 |
commit | 64b993e046f23baaacaff1572b7d2a816588b5ef (patch) | |
tree | 237dce36a1d4787d168a0520839f6aab22500487 /padmin | |
parent | 75f41baab6ce75786a91fe461835ee16a23ec18e (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 'padmin')
-rw-r--r-- | padmin/source/adddlg.cxx | 2 | ||||
-rw-r--r-- | padmin/source/cmddlg.cxx | 4 | ||||
-rw-r--r-- | padmin/source/newppdlg.cxx | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/padmin/source/adddlg.cxx b/padmin/source/adddlg.cxx index bb3487abe5f9..852c7555dbef 100644 --- a/padmin/source/adddlg.cxx +++ b/padmin/source/adddlg.cxx @@ -1068,7 +1068,7 @@ OUString AddPrinterDialog::uniquePrinterName( const OUString& rBase ) { aResult = rBase; aResult += "_" ; - aResult += OUString::valueOf(nVersion++); + aResult += OUString::number(nVersion++); } return aResult; diff --git a/padmin/source/cmddlg.cxx b/padmin/source/cmddlg.cxx index bbbbdc7a564a..e1455e856e16 100644 --- a/padmin/source/cmddlg.cxx +++ b/padmin/source/cmddlg.cxx @@ -123,7 +123,7 @@ void CommandStore::getStoredCommands( const char* pGroup, ::std::list< String >& ::std::list< String >::const_iterator it; while( nKeys-- ) { - OUString aCommand( rConfig.ReadKey(OString::valueOf(nKeys), RTL_TEXTENCODING_UTF8 ) ); + OUString aCommand( rConfig.ReadKey(OString::number(nKeys), RTL_TEXTENCODING_UTF8 ) ); if( !aCommand.isEmpty() ) { for( it = rCommands.begin(); it != rCommands.end() && *it != aCommand; ++it ) @@ -166,7 +166,7 @@ void CommandStore::setCommands( nWritten--; } for( nWritten = 0, it = aWriteList.begin(); it != aWriteList.end(); ++it, ++nWritten ) - rConfig.WriteKey( OString::valueOf(nWritten), OUStringToOString(*it, RTL_TEXTENCODING_UTF8) ); + rConfig.WriteKey( OString::number(nWritten), OUStringToOString(*it, RTL_TEXTENCODING_UTF8) ); } diff --git a/padmin/source/newppdlg.cxx b/padmin/source/newppdlg.cxx index cd8626778cc8..56c2cbd2bc7c 100644 --- a/padmin/source/newppdlg.cxx +++ b/padmin/source/newppdlg.cxx @@ -69,7 +69,7 @@ PPDImportDialog::PPDImportDialog( Window* pParent ) : m_aPathBox.SetText( OStringToOUString(rConfig.ReadKey("LastDir"), RTL_TEXTENCODING_UTF8) ); for (sal_Int32 i = 0; i < 11; ++i) { - OString aEntry(rConfig.ReadKey(OString::valueOf(i))); + OString aEntry(rConfig.ReadKey(OString::number(i))); if (!aEntry.isEmpty()) m_aPathBox.InsertEntry(OStringToOUString(aEntry, RTL_TEXTENCODING_UTF8)); } @@ -108,9 +108,9 @@ void PPDImportDialog::Import() if( nEntries < 0 ) { sal_Int32 nNextEntry = rConfig.ReadKey("NextEntry").toInt32(); - rConfig.WriteKey( OString::valueOf(nNextEntry), OUStringToOString(aImportPath, RTL_TEXTENCODING_UTF8) ); + rConfig.WriteKey( OString::number(nNextEntry), OUStringToOString(aImportPath, RTL_TEXTENCODING_UTF8) ); nNextEntry = nNextEntry < 10 ? nNextEntry+1 : 0; - rConfig.WriteKey( "NextEntry", OString::valueOf(nNextEntry) ); + rConfig.WriteKey( "NextEntry", OString::number(nNextEntry) ); m_aPathBox.InsertEntry( aImportPath ); } while( m_aDriverLB.GetEntryCount() ) |