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 --- shell/source/backends/gconfbe/gconfaccess.cxx | 2 +- shell/source/backends/kde4be/kde4access.cxx | 2 +- shell/source/unix/sysshell/recently_used_file_handler.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'shell') diff --git a/shell/source/backends/gconfbe/gconfaccess.cxx b/shell/source/backends/gconfbe/gconfaccess.cxx index 790d6e630564..de8eb29966e6 100644 --- a/shell/source/backends/gconfbe/gconfaccess.cxx +++ b/shell/source/backends/gconfbe/gconfaccess.cxx @@ -312,7 +312,7 @@ uno::Any translateToOOo( const ConfigurationValue &rValue, GConfValue *pGconfVal sal_Bool bBooleanValue = false; uno::Any aOriginalValue = makeAnyOfGconfValue( pGconfValue ); aOriginalValue >>= bBooleanValue; - return uno::makeAny( OUString::valueOf( (sal_Bool) bBooleanValue ) ); + return uno::makeAny( OUString::boolean( (sal_Bool) bBooleanValue ) ); } case SETTING_WORK_DIRECTORY: diff --git a/shell/source/backends/kde4be/kde4access.cxx b/shell/source/backends/kde4be/kde4access.cxx index 6bd8f4a45bd0..4961d7047c49 100644 --- a/shell/source/backends/kde4be/kde4access.cxx +++ b/shell/source/backends/kde4be/kde4access.cxx @@ -88,7 +88,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) { /* does not make much sense without an accessibility bridge */ sal_Bool ATToolSupport = sal_False; return css::beans::Optional< css::uno::Any >( - true, uno::makeAny( OUString::valueOf( ATToolSupport ) ) ); + true, uno::makeAny( OUString::boolean( ATToolSupport ) ) ); } else if (id.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("WorkPathVariable"))) { diff --git a/shell/source/unix/sysshell/recently_used_file_handler.cxx b/shell/source/unix/sysshell/recently_used_file_handler.cxx index 92695077c2df..54f9a52b0869 100644 --- a/shell/source/unix/sysshell/recently_used_file_handler.cxx +++ b/shell/source/unix/sysshell/recently_used_file_handler.cxx @@ -122,7 +122,7 @@ namespace /* private */ { write_xml_tag(TAG_URI, uri_, file); write_xml_tag(TAG_MIME_TYPE, mime_type_, file); - OString ts = OString::valueOf((sal_sSize)timestamp_); + OString ts = OString::number(timestamp_); write_xml_tag(TAG_TIMESTAMP, ts.getStr(), file); if (is_private_) -- cgit