diff options
author | Noel Grandin <noel@peralex.com> | 2013-12-13 09:29:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-12-17 11:49:03 +0200 |
commit | 08fe82e59cbc598d2683d72877653316c1e41962 (patch) | |
tree | 5eeace3006ef2bfd58a5d97a000f336b8b06099c /unotest | |
parent | fc985c30048d410ab68a55af64f56df85547a6bf (diff) |
Remove unnecessary use of OUString constructor in + expressions
Convert code like
aFilename = OUString::number(nFilePostfixCount) + OUString(".bmp");
to
aFilename = OUString::number(nFilePostfixCount) + ".bmp";
Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/cpp/bootstrapfixturebase.cxx | 2 | ||||
-rw-r--r-- | unotest/source/cpp/filters-test.cxx | 6 | ||||
-rw-r--r-- | unotest/source/cpp/toabsolutefileurl.cxx | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx index 988d9bd3172d..4fd1e789138a 100644 --- a/unotest/source/cpp/bootstrapfixturebase.cxx +++ b/unotest/source/cpp/bootstrapfixturebase.cxx @@ -93,7 +93,7 @@ void test::BootstrapFixtureBase::setUp() { // set UserInstallation to user profile dir in test/user-template rtl::Bootstrap aDefaultVars; - OUString sUserInstallURL = m_aWorkdirRootURL + OUString("/unittest"); + OUString sUserInstallURL = m_aWorkdirRootURL + "/unittest"; aDefaultVars.set(OUString("UserInstallation"), sUserInstallURL); m_xContext = comphelper::getProcessComponentContext(); diff --git a/unotest/source/cpp/filters-test.cxx b/unotest/source/cpp/filters-test.cxx index 9d38a09b91d9..3b613f338aa1 100644 --- a/unotest/source/cpp/filters-test.cxx +++ b/unotest/source/cpp/filters-test.cxx @@ -130,13 +130,13 @@ void FiltersTest::testDir(const OUString &rFilter, { fprintf(stderr, "File tested,Test Result,Execution Time (ms)\n"); recursiveScan(test::pass, rFilter, - rURL + OUString("pass"), + rURL + "pass", rUserData, nFilterFlags, nClipboardID, nFilterVersion); recursiveScan(test::fail, rFilter, - rURL + OUString("fail"), + rURL + "fail", rUserData, nFilterFlags, nClipboardID, nFilterVersion); recursiveScan(test::indeterminate, rFilter, - rURL + OUString("indeterminate"), + rURL + "indeterminate", rUserData, nFilterFlags, nClipboardID, nFilterVersion); } diff --git a/unotest/source/cpp/toabsolutefileurl.cxx b/unotest/source/cpp/toabsolutefileurl.cxx index 6193c9814f70..1935c4b26459 100644 --- a/unotest/source/cpp/toabsolutefileurl.cxx +++ b/unotest/source/cpp/toabsolutefileurl.cxx @@ -45,7 +45,7 @@ OUString toAbsoluteFileUrl(OUString const & relativePathname) { throw css::uno::RuntimeException( (OUString("osl::FileBase::getFileURLFromSystemPath(") + relativePathname + - OUString(") failed with ") + + ") failed with " + OUString::number(e2)), css::uno::Reference< css::uno::XInterface >()); } @@ -54,8 +54,8 @@ OUString toAbsoluteFileUrl(OUString const & relativePathname) { if (e2 != osl::FileBase::E_None) { throw css::uno::RuntimeException( (OUString("osl::FileBase::getAbsoluteFileURL(") + - cwd + OUString(", ") + url + - OUString(") failed with ") + + cwd + ", " + url + + ") failed with " + OUString::number(e2)), css::uno::Reference< css::uno::XInterface >()); } |