diff options
author | Jean-Noël Rouvignac <jn.rouvignac@gmail.com> | 2013-01-20 13:55:09 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-01-21 15:04:17 +0000 |
commit | 63bcb139b941a2eff1b5ad367046bca067e7d1f8 (patch) | |
tree | e3ecd8d2804dc60be4233508af0e78fdae0c9838 /unotest | |
parent | d912979b4fefaaf3011fdca2005db6699ea45405 (diff) |
Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()
Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de
Reviewed-on: https://gerrit.libreoffice.org/1784
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/cpp/toabsolutefileurl.cxx | 6 | ||||
-rw-r--r-- | unotest/source/cpp/uniquepipename.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/unotest/source/cpp/toabsolutefileurl.cxx b/unotest/source/cpp/toabsolutefileurl.cxx index b92069b418f7..966dc3e29232 100644 --- a/unotest/source/cpp/toabsolutefileurl.cxx +++ b/unotest/source/cpp/toabsolutefileurl.cxx @@ -37,7 +37,7 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) { (rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "osl_getProcessWorkingDir failed with ")) + - rtl::OUString::valueOf(static_cast< sal_Int32 >(e1))), + OUString::number(e1)), css::uno::Reference< css::uno::XInterface >()); } rtl::OUString url; @@ -50,7 +50,7 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) { "osl::FileBase::getFileURLFromSystemPath(")) + relativePathname + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(") failed with ")) + - rtl::OUString::valueOf(static_cast< sal_Int32 >(e2))), + OUString::number(e2)), css::uno::Reference< css::uno::XInterface >()); } rtl::OUString absUrl; @@ -62,7 +62,7 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) { "osl::FileBase::getAbsoluteFileURL(")) + cwd + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(", ")) + url + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(") failed with ")) + - rtl::OUString::valueOf(static_cast< sal_Int32 >(e2))), + OUString::number(e2)), css::uno::Reference< css::uno::XInterface >()); } return absUrl; diff --git a/unotest/source/cpp/uniquepipename.cxx b/unotest/source/cpp/uniquepipename.cxx index f7a67c0edb13..667bc33ac1da 100644 --- a/unotest/source/cpp/uniquepipename.cxx +++ b/unotest/source/cpp/uniquepipename.cxx @@ -32,7 +32,7 @@ rtl::OUString uniquePipeName(rtl::OUString const & name) { CPPUNIT_ASSERT_EQUAL( osl_Process_E_None, osl_getProcessInfo(0, osl_Process_IDENTIFIER, &info)); - return name + rtl::OUString::valueOf(static_cast< sal_Int64 >(info.Ident)); + return name + OUString::number(info.Ident); } } |