summaryrefslogtreecommitdiff
path: root/unotest/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-23 12:03:21 +0200
committerNoel Grandin <noel@peralex.com>2014-05-23 15:06:00 +0200
commite7bc3cab019fbf040f9fb8b53ae2cf3f977d200b (patch)
treebc507bccee9fb71134e362b72d22991561e32aa0 /unotest/source
parentc5d47c327a57df55fa3dac0fff6b65888d0345e4 (diff)
remove boilerplate in UNO Exception constructor calls
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
Diffstat (limited to 'unotest/source')
-rw-r--r--unotest/source/cpp/toabsolutefileurl.cxx23
1 files changed, 10 insertions, 13 deletions
diff --git a/unotest/source/cpp/toabsolutefileurl.cxx b/unotest/source/cpp/toabsolutefileurl.cxx
index 1935c4b26459..5cf86b14f319 100644
--- a/unotest/source/cpp/toabsolutefileurl.cxx
+++ b/unotest/source/cpp/toabsolutefileurl.cxx
@@ -34,30 +34,27 @@ OUString toAbsoluteFileUrl(OUString const & relativePathname) {
oslProcessError e1 = osl_getProcessWorkingDir(&cwd.pData);
if (e1 != osl_Process_E_None) {
throw css::uno::RuntimeException(
- (OUString("osl_getProcessWorkingDir failed with ") +
- OUString::number(e1)),
- css::uno::Reference< css::uno::XInterface >());
+ OUString("osl_getProcessWorkingDir failed with ") +
+ OUString::number(e1));
}
OUString url;
osl::FileBase::RC e2 = osl::FileBase::getFileURLFromSystemPath(
relativePathname, url);
if (e2 != osl::FileBase::E_None) {
throw css::uno::RuntimeException(
- (OUString("osl::FileBase::getFileURLFromSystemPath(") +
- relativePathname +
- ") failed with " +
- OUString::number(e2)),
- css::uno::Reference< css::uno::XInterface >());
+ OUString("osl::FileBase::getFileURLFromSystemPath(") +
+ relativePathname +
+ ") failed with " +
+ OUString::number(e2));
}
OUString absUrl;
e2 = osl::FileBase::getAbsoluteFileURL(cwd, url, absUrl);
if (e2 != osl::FileBase::E_None) {
throw css::uno::RuntimeException(
- (OUString("osl::FileBase::getAbsoluteFileURL(") +
- cwd + ", " + url +
- ") failed with " +
- OUString::number(e2)),
- css::uno::Reference< css::uno::XInterface >());
+ OUString("osl::FileBase::getAbsoluteFileURL(") +
+ cwd + ", " + url +
+ ") failed with " +
+ OUString::number(e2));
}
return absUrl;
}