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 /ure | |
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 'ure')
-rw-r--r-- | ure/source/uretest/cppmain.cc | 4 | ||||
-rw-r--r-- | ure/source/uretest/cppserver.cc | 4 | ||||
-rw-r--r-- | ure/source/uretest/cpptest.cc | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/ure/source/uretest/cppmain.cc b/ure/source/uretest/cppmain.cc index 4babec02f3e2..0ccf4abbd1b5 100644 --- a/ure/source/uretest/cppmain.cc +++ b/ure/source/uretest/cppmain.cc @@ -212,9 +212,7 @@ css::uno::Reference< css::uno::XInterface > create( try { return static_cast< ::cppu::OWeakObject * >(new Service(context)); } catch (::std::bad_alloc &) { - throw css::uno::RuntimeException( - ::rtl::OUString("std::bad_alloc"), - css::uno::Reference< css::uno::XInterface >()); + throw css::uno::RuntimeException("std::bad_alloc"); } } diff --git a/ure/source/uretest/cppserver.cc b/ure/source/uretest/cppserver.cc index 450c04d12bb2..13a64fc97ef2 100644 --- a/ure/source/uretest/cppserver.cc +++ b/ure/source/uretest/cppserver.cc @@ -66,9 +66,7 @@ css::uno::Reference< css::uno::XInterface > create( try { return static_cast< ::cppu::OWeakObject * >(new Service); } catch (::std::bad_alloc &) { - throw css::uno::RuntimeException( - rtl::OUString("std::bad_alloc"), - css::uno::Reference< css::uno::XInterface >()); + throw css::uno::RuntimeException("std::bad_alloc"); } } diff --git a/ure/source/uretest/cpptest.cc b/ure/source/uretest/cpptest.cc index 04dba6ffbb95..4e1bd350934b 100644 --- a/ure/source/uretest/cpptest.cc +++ b/ure/source/uretest/cpptest.cc @@ -66,9 +66,7 @@ css::uno::Reference< css::uno::XInterface > create( try { return static_cast< cppu::OWeakObject * >(new Service); } catch (std::bad_alloc &) { - throw css::uno::RuntimeException( - rtl::OUString("std::bad_alloc"), - css::uno::Reference< css::uno::XInterface >()); + throw css::uno::RuntimeException("std::bad_alloc"); } } |