summaryrefslogtreecommitdiff
path: root/sal
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 /sal
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 'sal')
-rw-r--r--sal/qa/OStringBuffer/rtl_OStringBuffer.cxx4
-rw-r--r--sal/qa/osl/file/osl_File.cxx2
-rw-r--r--sal/qa/osl/security/osl_Security.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
index ca5274dc1900..41477e92d56c 100644
--- a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
+++ b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
@@ -14699,7 +14699,7 @@ namespace rtl_OStringBuffer
bool checkIfStrBufContainAtPosTheFloat(rtl::OStringBuffer const& _sStrBuf, sal_Int32 _nLen, float _nFloat)
{
OString sFloatValue;
- sFloatValue = rtl::OString::valueOf(_nFloat);
+ sFloatValue = OString::number(_nFloat);
OString sBufferString(_sStrBuf.getStr());
sal_Int32 nPos = sBufferString.indexOf(sFloatValue);
@@ -16186,7 +16186,7 @@ namespace rtl_OStringBuffer
bool checkIfStrBufContainAtPosTheDouble(rtl::OStringBuffer const& _sStrBuf, sal_Int32 _nLen, double _nDouble)
{
OString sDoubleValue;
- sDoubleValue = rtl::OString::valueOf(_nDouble);
+ sDoubleValue = OString::number(_nDouble);
OString sBufferString(_sStrBuf.getStr());
sal_Int32 nPos = sBufferString.indexOf(sDoubleValue);
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index 6357a8b028cd..ab22c8549583 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -6281,7 +6281,7 @@ inline ::rtl::OUString getCurrentPID( )
#else
nPID = getpid();
#endif
- return ( ::rtl::OUString::valueOf( ( long )nPID ) );
+ return ( OUString::number( nPID ) );
}
diff --git a/sal/qa/osl/security/osl_Security.cxx b/sal/qa/osl/security/osl_Security.cxx
index 6d8a29e7b8f1..e9ad1a75aade 100644
--- a/sal/qa/osl/security/osl_Security.cxx
+++ b/sal/qa/osl/security/osl_Security.cxx
@@ -361,7 +361,7 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *,
CPPUNIT_ASSERT_MESSAGE( "getpwuid: no password entry\n",( pw = getpwuid( getuid() ) ) != NULL );
/// get user ID;
- strUserID = ::rtl::OUString::valueOf( ( sal_Int32 )getuid( ) );
+ strUserID = OUString::number( getuid( ) );
/// get user Name;
strUserName = ::rtl::OUString::createFromAscii( pw->pw_name );