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 /include/rtl | |
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 'include/rtl')
-rw-r--r-- | include/rtl/string.hxx | 12 | ||||
-rw-r--r-- | include/rtl/ustring.hxx | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx index d58dc9f38e85..e54ce8e7fc29 100644 --- a/include/rtl/string.hxx +++ b/include/rtl/string.hxx @@ -1501,7 +1501,7 @@ public: @return a string with the string representation of the argument. @deprecated use boolean() */ - SAL_DEPRECATED_INTERNAL("use boolean()") static OString valueOf( sal_Bool b ) SAL_THROW(()) + SAL_DEPRECATED("use boolean()") static OString valueOf( sal_Bool b ) SAL_THROW(()) { return boolean(b); } @@ -1532,7 +1532,7 @@ public: @return a string with the string representation of the argument. @deprecated use operator, function or constructor taking char or sal_Unicode argument */ - SAL_DEPRECATED_INTERNAL("convert to OString or use directly") static OString valueOf( sal_Char c ) SAL_THROW(()) + SAL_DEPRECATED("convert to OString or use directly") static OString valueOf( sal_Char c ) SAL_THROW(()) { return OString( &c, 1 ); } @@ -1547,7 +1547,7 @@ public: @return a string with the string representation of the argument. @deprecated use number() */ - SAL_DEPRECATED_INTERNAL("use number()") static OString valueOf( sal_Int32 i, sal_Int16 radix = 10 ) SAL_THROW(()) + SAL_DEPRECATED("use number()") static OString valueOf( sal_Int32 i, sal_Int16 radix = 10 ) SAL_THROW(()) { return number( i, radix ); } @@ -1562,7 +1562,7 @@ public: @return a string with the string representation of the argument. @deprecated use number() */ - SAL_DEPRECATED_INTERNAL("use number()") static OString valueOf( sal_Int64 ll, sal_Int16 radix = 10 ) SAL_THROW(()) + SAL_DEPRECATED("use number()") static OString valueOf( sal_Int64 ll, sal_Int16 radix = 10 ) SAL_THROW(()) { return number( ll, radix ); } @@ -1576,7 +1576,7 @@ public: @return a string with the string representation of the argument. @deprecated use number() */ - SAL_DEPRECATED_INTERNAL("use number()") static OString valueOf( float f ) SAL_THROW(()) + SAL_DEPRECATED("use number()") static OString valueOf( float f ) SAL_THROW(()) { return number(f); } @@ -1590,7 +1590,7 @@ public: @return a string with the string representation of the argument. @deprecated use number() */ - SAL_DEPRECATED_INTERNAL("use number()") static OString valueOf( double d ) SAL_THROW(()) + SAL_DEPRECATED("use number()") static OString valueOf( double d ) SAL_THROW(()) { return number(d); } diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx index 94527db4c828..daa0ff52ea43 100644 --- a/include/rtl/ustring.hxx +++ b/include/rtl/ustring.hxx @@ -2113,7 +2113,7 @@ public: @return a string with the string representation of the argument. @deprecated use boolean() */ - SAL_DEPRECATED_INTERNAL("use boolean()") static OUString valueOf( sal_Bool b ) SAL_THROW(()) + SAL_DEPRECATED("use boolean()") static OUString valueOf( sal_Bool b ) SAL_THROW(()) { return boolean(b); } @@ -2144,7 +2144,7 @@ public: @return a string with the string representation of the argument. @deprecated use operator, function or constructor taking char or sal_Unicode argument */ - SAL_DEPRECATED_INTERNAL("convert to OUString or use directly") static OUString valueOf( sal_Unicode c ) SAL_THROW(()) + SAL_DEPRECATED("convert to OUString or use directly") static OUString valueOf( sal_Unicode c ) SAL_THROW(()) { return OUString( &c, 1 ); } @@ -2159,7 +2159,7 @@ public: @return a string with the string representation of the argument. @deprecated use number() */ - SAL_DEPRECATED_INTERNAL("use number()") static OUString valueOf( sal_Int32 i, sal_Int16 radix = 10 ) SAL_THROW(()) + SAL_DEPRECATED("use number()") static OUString valueOf( sal_Int32 i, sal_Int16 radix = 10 ) SAL_THROW(()) { return number( i, radix ); } @@ -2174,7 +2174,7 @@ public: @return a string with the string representation of the argument. @deprecated use number() */ - SAL_DEPRECATED_INTERNAL("use number()") static OUString valueOf( sal_Int64 ll, sal_Int16 radix = 10 ) SAL_THROW(()) + SAL_DEPRECATED("use number()") static OUString valueOf( sal_Int64 ll, sal_Int16 radix = 10 ) SAL_THROW(()) { return number( ll, radix ); } @@ -2188,7 +2188,7 @@ public: @return a string with the string representation of the argument. @deprecated use number() */ - SAL_DEPRECATED_INTERNAL("use number()") static OUString valueOf( float f ) SAL_THROW(()) + SAL_DEPRECATED("use number()") static OUString valueOf( float f ) SAL_THROW(()) { return number(f); } @@ -2202,7 +2202,7 @@ public: @return a string with the string representation of the argument. @deprecated use number() */ - SAL_DEPRECATED_INTERNAL("use number()") static OUString valueOf( double d ) SAL_THROW(()) + SAL_DEPRECATED("use number()") static OUString valueOf( double d ) SAL_THROW(()) { return number(d); } |