From 64b993e046f23baaacaff1572b7d2a816588b5ef Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 21 Aug 2013 15:07:31 +0200 Subject: 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 --- registry/tools/regcompare.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'registry') diff --git a/registry/tools/regcompare.cxx b/registry/tools/regcompare.cxx index d849b2a0ae57..a08a3756c1ec 100644 --- a/registry/tools/regcompare.cxx +++ b/registry/tools/regcompare.cxx @@ -554,10 +554,10 @@ static sal_uInt32 checkConstValue(Options_Impl const & options, stdout, " Field %d: Value1 = %s != Value2 = %s\n", index1, OUStringToOString( - OUString::valueOf(constValue1.m_value.aHyper), + OUString::number(constValue1.m_value.aHyper), RTL_TEXTENCODING_ASCII_US).getStr(), OUStringToOString( - OUString::valueOf(constValue2.m_value.aHyper), + OUString::number(constValue2.m_value.aHyper), RTL_TEXTENCODING_ASCII_US).getStr()); } return 1; @@ -573,14 +573,12 @@ static sal_uInt32 checkConstValue(Options_Impl const & options, stdout, " Field %d: Value1 = %s != Value2 = %s\n", index1, OUStringToOString( - OUString::valueOf( - static_cast< sal_Int64 >( - constValue1.m_value.aUHyper)), + OUString::number( + constValue1.m_value.aUHyper), RTL_TEXTENCODING_ASCII_US).getStr(), OUStringToOString( - OUString::valueOf( - static_cast< sal_Int64 >( - constValue2.m_value.aUHyper)), + OUString::number( + constValue2.m_value.aUHyper), RTL_TEXTENCODING_ASCII_US).getStr()); // printing the unsigned values as signed should be // acceptable... -- cgit