diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-04-09 16:27:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-04-09 21:25:18 +0200 |
commit | 0b0bc5eb77ac735573482dddd6814c9763f8c6e1 (patch) | |
tree | 0c3b5c8fdb61b43454ac2cedc271127e4c14826e /ure/source/uretest/cpptest.cc | |
parent | 0a4c1fb68c3619e61099a7c548f550b0d3fd7a53 (diff) |
Remove std::bad_alloc -> css::uno::RuntimeException mappings
...that are no longer needed now that the dynamic exception specifications are
gone from C++ UNO, so won't cause std::unexpected any more.
Change-Id: Ie3418658f5a84e6cec1ac48e3413f523f87497fe
Reviewed-on: https://gerrit.libreoffice.org/52641
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ure/source/uretest/cpptest.cc')
-rw-r--r-- | ure/source/uretest/cpptest.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ure/source/uretest/cpptest.cc b/ure/source/uretest/cpptest.cc index c42270e0c381..b037fdceebfb 100644 --- a/ure/source/uretest/cpptest.cc +++ b/ure/source/uretest/cpptest.cc @@ -20,7 +20,6 @@ #include "com/sun/star/uno/Exception.hpp" #include "com/sun/star/uno/Reference.hxx" -#include "com/sun/star/uno/RuntimeException.hpp" #include "com/sun/star/uno/Sequence.hxx" #include "com/sun/star/uno/XComponentContext.hpp" #include "com/sun/star/uno/XInterface.hpp" @@ -60,11 +59,7 @@ namespace CppTest { css::uno::Reference< css::uno::XInterface > create( css::uno::Reference< css::uno::XComponentContext > const &) { - try { - return static_cast< cppu::OWeakObject * >(new Service); - } catch (std::bad_alloc &) { - throw css::uno::RuntimeException("std::bad_alloc"); - } + return static_cast< cppu::OWeakObject * >(new Service); } rtl::OUString getImplementationName() { |