From b61214c91d926ea56f2cae309469da588b3304b1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 27 Jan 2017 10:37:08 +0100 Subject: Remove dynamic exception specifications from !LIBO_INTERNAL_ONLY ...only odk/examples/ remains to be clean up Change-Id: I875a1e8d6750b6b007bd75126b8010273e1f32d5 --- ure/source/uretest/cppmain.cc | 7 ++----- ure/source/uretest/cppserver.cc | 4 +--- ure/source/uretest/cpptest.cc | 4 +--- 3 files changed, 4 insertions(+), 11 deletions(-) (limited to 'ure/source/uretest') diff --git a/ure/source/uretest/cppmain.cc b/ure/source/uretest/cppmain.cc index ab38ef99b6c7..db1cf308e708 100644 --- a/ure/source/uretest/cppmain.cc +++ b/ure/source/uretest/cppmain.cc @@ -84,8 +84,7 @@ public: context_(context) {} virtual ::sal_Int32 SAL_CALL run( - css::uno::Sequence< ::rtl::OUString > const &) - throw (css::uno::RuntimeException); + css::uno::Sequence< ::rtl::OUString > const &); private: Service(Service &); // not defined @@ -100,9 +99,7 @@ private: css::uno::Reference< css::uno::XComponentContext > context_; }; -::sal_Int32 Service::run(css::uno::Sequence< ::rtl::OUString > const &) - throw (css::uno::RuntimeException) -{ +::sal_Int32 Service::run(css::uno::Sequence< ::rtl::OUString > const &) { osl_getThreadIdentifier(0); // check for sal (new salhelper::SimpleReferenceObject)->release(); // check for salhelper css::uno::getCurrentContext(); // check for cppu diff --git a/ure/source/uretest/cppserver.cc b/ure/source/uretest/cppserver.cc index 69b33c3b9f6a..b90e4c057075 100644 --- a/ure/source/uretest/cppserver.cc +++ b/ure/source/uretest/cppserver.cc @@ -44,9 +44,7 @@ class Service: public ::cppu::WeakImplHelper1< ::test::types::XServer > { public: Service() {} - virtual ::test::types::Data SAL_CALL getData() - throw (css::uno::RuntimeException) - { + virtual ::test::types::Data SAL_CALL getData() { return ::test::types::Data(rtl::OUString("Hello"), 42); } diff --git a/ure/source/uretest/cpptest.cc b/ure/source/uretest/cpptest.cc index d1f112dabd82..c42270e0c381 100644 --- a/ure/source/uretest/cpptest.cc +++ b/ure/source/uretest/cpptest.cc @@ -42,9 +42,7 @@ class Service: public cppu::WeakImplHelper1< test::types::XTest > { public: Service() {} - virtual void SAL_CALL throwException() - throw (test::types::TestException, css::uno::RuntimeException) - { + virtual void SAL_CALL throwException() { throw test::types::TestException( rtl::OUString("test"), static_cast< cppu::OWeakObject * >(this)); -- cgit