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 /idlc | |
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 'idlc')
-rw-r--r-- | idlc/source/astexpression.cxx | 18 | ||||
-rw-r--r-- | idlc/source/idlcmain.cxx | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx index f35d4d019f71..683695e98f97 100644 --- a/idlc/source/astexpression.cxx +++ b/idlc/source/astexpression.cxx @@ -1145,23 +1145,23 @@ OString AstExpression::toString() switch (m_exprValue->et) { case ET_short: - return OString::valueOf((sal_Int32)m_exprValue->u.sval); + return OString::number(m_exprValue->u.sval); case ET_ushort: - return OString::valueOf((sal_Int32)m_exprValue->u.usval); + return OString::number(m_exprValue->u.usval); case ET_long: - return OString::valueOf(m_exprValue->u.lval); + return OString::number(m_exprValue->u.lval); case ET_ulong: - return OString::valueOf((sal_Int32)m_exprValue->u.ulval); + return OString::number(m_exprValue->u.ulval); case ET_hyper: - return OString::valueOf(m_exprValue->u.hval); + return OString::number(m_exprValue->u.hval); case ET_uhyper: - return OString::valueOf((sal_Int64)m_exprValue->u.uhval); + return OString::number(m_exprValue->u.uhval); case ET_float: - return OString::valueOf(m_exprValue->u.fval); + return OString::number(m_exprValue->u.fval); case ET_double: - return OString::valueOf(m_exprValue->u.dval); + return OString::number(m_exprValue->u.dval); case ET_byte: - return OString::valueOf((sal_Int32)m_exprValue->u.byval); + return OString::number(m_exprValue->u.byval); case ET_boolean: if ( m_exprValue->u.lval == 0) return OString("FALSE"); diff --git a/idlc/source/idlcmain.cxx b/idlc/source/idlcmain.cxx index 37017b9bcfd8..fbec6deb6af5 100644 --- a/idlc/source/idlcmain.cxx +++ b/idlc/source/idlcmain.cxx @@ -113,7 +113,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) { outputFile = (options.getOption("-O")); if ('/' != outputFile.getStr()[outputFile.getLength()-1]) { - outputFile += OString::valueOf('/'); + outputFile += OString('/'); } outputFile += strippedFileName.replaceAt( strippedFileName.getLength() -3 , 3, "urd"); @@ -127,7 +127,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) if (options.isValid("-M")) { depFileUrl = convertToFileUrl(options.getOption("-M")); if ('/' != depFileUrl.getStr()[depFileUrl.getLength()-1]) { - depFileUrl += OString::valueOf('/'); + depFileUrl += OString('/'); } depFileUrl += strippedFileName.replaceAt( strippedFileName.getLength() -3 , 3, "d"); |