diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-23 12:03:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-05-23 15:06:00 +0200 |
commit | e7bc3cab019fbf040f9fb8b53ae2cf3f977d200b (patch) | |
tree | bc507bccee9fb71134e362b72d22991561e32aa0 /cppuhelper/source/paths.cxx | |
parent | c5d47c327a57df55fa3dac0fff6b65888d0345e4 (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 'cppuhelper/source/paths.cxx')
-rw-r--r-- | cppuhelper/source/paths.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cppuhelper/source/paths.cxx b/cppuhelper/source/paths.cxx index 5ff356fa2877..2f021d6ac794 100644 --- a/cppuhelper/source/paths.cxx +++ b/cppuhelper/source/paths.cxx @@ -46,8 +46,7 @@ rtl::OUString get_this_libpath() { sal_Int32 i = uri.lastIndexOf('/'); if (i == -1) { throw css::uno::DeploymentException( - "URI " + uri + " is expected to contain a slash", - css::uno::Reference< css::uno::XInterface >()); + "URI " + uri + " is expected to contain a slash"); } uri = uri.copy(0, i); osl::MutexGuard guard(osl::Mutex::getGlobalMutex()); @@ -100,16 +99,14 @@ bool cppu::nextDirectoryItem(osl::Directory & directory, rtl::OUString * url) { return false; default: throw css::uno::DeploymentException( - "Cannot iterate directory", - css::uno::Reference< css::uno::XInterface >()); + "Cannot iterate directory"); } osl::FileStatus stat( osl_FileStatus_Mask_Type | osl_FileStatus_Mask_FileName | osl_FileStatus_Mask_FileURL); if (i.getFileStatus(stat) != osl::FileBase::E_None) { throw css::uno::DeploymentException( - "Cannot stat in directory", - css::uno::Reference< css::uno::XInterface >()); + "Cannot stat in directory"); } if (stat.getFileType() != osl::FileStatus::Directory) { //TODO: symlinks // Ignore backup files: |