diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-04-16 15:01:31 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-04-16 15:01:42 +0200 |
commit | 336353a87e6003e685aab87ea74a158546e1f297 (patch) | |
tree | 6d32698019589a88b2a57350bab8afe312f86a44 /stoc | |
parent | 63b4633cf7b0da9eba63e752cec72cb10ed9d93e (diff) |
Related rhbz#867808: More apparently bogus "throw new ..." in C++ code
Change-Id: I5d723b389f1ed20f7962807b782f44f6f3c61882
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/registry_tdprovider/functiondescription.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stoc/source/registry_tdprovider/functiondescription.cxx b/stoc/source/registry_tdprovider/functiondescription.cxx index 3b477d15c285..bbdb3aa51568 100644 --- a/stoc/source/registry_tdprovider/functiondescription.cxx +++ b/stoc/source/registry_tdprovider/functiondescription.cxx @@ -71,7 +71,7 @@ FunctionDescription::getExceptions() const { try { any = m_manager->getByHierarchicalName(name); } catch (const css::container::NoSuchElementException & e) { - throw new css::uno::RuntimeException( + throw css::uno::RuntimeException( (OUString( "com.sun.star.container.NoSuchElementException: ") + e.Message), @@ -80,7 +80,7 @@ FunctionDescription::getExceptions() const { if (!(any >>= exceptions[i]) || exceptions[i]->getTypeClass() != css::uno::TypeClass_EXCEPTION) { - throw new css::uno::RuntimeException( + throw css::uno::RuntimeException( (OUString("not an exception type: ") + name), css::uno::Reference< css::uno::XInterface >()); //TODO |