summaryrefslogtreecommitdiff
path: root/unotest/source/cpp/toabsolutefileurl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotest/source/cpp/toabsolutefileurl.cxx')
-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;
}