From e7bc3cab019fbf040f9fb8b53ae2cf3f977d200b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 23 May 2014 12:03:21 +0200 Subject: 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 --- ure/source/uretest/cppmain.cc | 4 +--- ure/source/uretest/cppserver.cc | 4 +--- ure/source/uretest/cpptest.cc | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) (limited to 'ure') 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"); } } -- cgit