summaryrefslogtreecommitdiff
path: root/registry
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 /registry
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 'registry')
-rw-r--r--registry/tools/regcompare.cxx14
1 files changed, 6 insertions, 8 deletions
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...