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 /tools | |
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 'tools')
-rw-r--r-- | tools/source/debug/debug.cxx | 2 | ||||
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 32 |
2 files changed, 17 insertions, 17 deletions
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx index 70230cebee52..a9a713b6e81c 100644 --- a/tools/source/debug/debug.cxx +++ b/tools/source/debug/debug.cxx @@ -1624,7 +1624,7 @@ TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const c if ( caught >>= specialized ) { sMessage += "\ndetails: "; - sMessage += OString::valueOf( specialized.ErrCode ); + sMessage += OString::number( specialized.ErrCode ); } } sMessage += "\n"; diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index fe719f568091..136bfb10f63b 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -2467,7 +2467,7 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p if (nOctets < 4) { aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber))); + OUString::number(nNumber)); aTheCanonic.append(sal_Unicode('.')); ++nOctets; eState = STATE_IP4_DOT; @@ -2566,13 +2566,13 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p if (*p == ']') { aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber), 16)); + OUString::number(nNumber, 16)); eState = STATE_IP6_DONE; } else if (*p == ':') { aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber), 16)); + OUString::number(nNumber, 16)); aTheCanonic.append(sal_Unicode(':')); eState = STATE_IP6_HEXSEQ1_COLON; } @@ -2611,13 +2611,13 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p if (*p == ']') { aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber), 16)); + OUString::number(nNumber, 16)); eState = STATE_IP6_DONE; } else if (*p == ':') { aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber), 16)); + OUString::number(nNumber, 16)); aTheCanonic.append(sal_Unicode(':')); eState = STATE_IP6_HEXSEQ1_COLON; } @@ -2626,7 +2626,7 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p nNumber = 100 * (nNumber >> 8) + 10 * (nNumber >> 4 & 15) + (nNumber & 15); aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber))); + OUString::number(nNumber)); aTheCanonic.append(sal_Unicode('.')); nOctets = 2; eState = STATE_IP6_IP4_DOT; @@ -2650,13 +2650,13 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p if (*p == ']') { aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber), 16)); + OUString::number(nNumber, 16)); eState = STATE_IP6_DONE; } else if (*p == ':') { aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber), 16)); + OUString::number(nNumber, 16)); aTheCanonic.append(sal_Unicode(':')); eState = STATE_IP6_HEXSEQ2_COLON; } @@ -2690,13 +2690,13 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p if (*p == ']') { aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber), 16)); + OUString::number(nNumber, 16)); eState = STATE_IP6_DONE; } else if (*p == ':') { aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber), 16)); + OUString::number(nNumber, 16)); aTheCanonic.append(sal_Unicode(':')); eState = STATE_IP6_HEXSEQ2_COLON; } @@ -2705,7 +2705,7 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p nNumber = 100 * (nNumber >> 8) + 10 * (nNumber >> 4 & 15) + (nNumber & 15); aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber))); + OUString::number(nNumber)); aTheCanonic.append(sal_Unicode('.')); nOctets = 2; eState = STATE_IP6_IP4_DOT; @@ -2730,7 +2730,7 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p if (nOctets == 4) { aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber))); + OUString::number(nNumber)); eState = STATE_IP6_DONE; } else @@ -2739,7 +2739,7 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p if (nOctets < 4) { aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber))); + OUString::number(nNumber)); aTheCanonic.append(sal_Unicode('.')); ++nOctets; eState = STATE_IP6_IP4_DOT; @@ -2785,7 +2785,7 @@ bool INetURLObject::parseHost(sal_Unicode const *& rBegin, sal_Unicode const * p if (nOctets == 4) { aTheCanonic.append( - OUString::valueOf(sal_Int32(nNumber))); + OUString::number(nNumber)); rBegin = p; rCanonic = aTheCanonic.makeStringAndClear(); return true; @@ -4118,7 +4118,7 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme, { m_aAbsURIRef.append(sal_Unicode(':')); m_aPort.set(m_aAbsURIRef, - OUString::valueOf(sal_Int64(nThePort)), + OUString::number(nThePort), m_aAbsURIRef.getLength()); } else @@ -4241,7 +4241,7 @@ bool INetURLObject::SetPort(sal_uInt32 nThePort) { if (getSchemeInfo().m_bPort && m_aHost.isPresent()) { - OUString aNewPort(OUString::valueOf(sal_Int64(nThePort))); + OUString aNewPort(OUString::number(nThePort)); sal_Int32 nDelta; if (m_aPort.isPresent()) nDelta = m_aPort.set(m_aAbsURIRef, aNewPort); |