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 /stoc/source/implementationregistration/mergekeys.cxx | |
parent | add default value for Context param in uno::Exception constructors (diff) | |
download | core-e7bc3cab019fbf040f9fb8b53ae2cf3f977d200b.tar.gz core-e7bc3cab019fbf040f9fb8b53ae2cf3f977d200b.zip |
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 'stoc/source/implementationregistration/mergekeys.cxx')
-rw-r--r-- | stoc/source/implementationregistration/mergekeys.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/stoc/source/implementationregistration/mergekeys.cxx b/stoc/source/implementationregistration/mergekeys.cxx index b2101b36e527..c44a44d9e8df 100644 --- a/stoc/source/implementationregistration/mergekeys.cxx +++ b/stoc/source/implementationregistration/mergekeys.cxx @@ -54,13 +54,11 @@ static void mergeKeys( { if (!xSource.is() || !xSource->isValid()) { throw registry::InvalidRegistryException( - "source key is null or invalid!", - Reference<XInterface>() ); + "source key is null or invalid!" ); } if (!xDest.is() || !xDest->isValid()) { throw registry::InvalidRegistryException( - "destination key is null or invalid!", - Reference<XInterface>() ); + "destination key is null or invalid!" ); } // write value @@ -149,15 +147,12 @@ void mergeKeys( { if (!xDest.is() || !xDest->isValid()) { throw registry::InvalidRegistryException( - "destination key is null or invalid!", - Reference<XInterface>() ); + "destination key is null or invalid!" ); } if (xDest->isReadOnly()) { throw registry::InvalidRegistryException( - OUString( - "destination registry is read-only! cannot merge!"), - Reference< XInterface >() ); + "destination registry is read-only! cannot merge!" ); } t_links links; |