From 1a88414f52e0f16aad1f992c7e6d6590cffdc462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 25 Apr 2014 13:03:52 +0100 Subject: [PATCH] coverity#707098 Uncaught exception Change-Id: I88e0ddd6de87bf8264e06ee34d6c144f16a7aa60 --- .../configuration/ConfigurationController.cxx | 12 ++---------- .../ui/inc/framework/ConfigurationController.hxx | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/sd/source/ui/framework/configuration/ConfigurationController.cxx b/sd/source/ui/framework/configuration/ConfigurationController.cxx index 957f7ef05f56..39ec23ee024b 100644 --- a/sd/source/ui/framework/configuration/ConfigurationController.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationController.cxx @@ -625,13 +625,8 @@ void SAL_CALL ConfigurationController::initialize (const Sequence& aArgumen } } - - - - - -void ConfigurationController::ThrowIfDisposed (void) const - throw (::com::sun::star::lang::DisposedException) +void ConfigurationController::ThrowIfDisposed () const + throw (css::lang::DisposedException, css::uno::RuntimeException) { if (mbIsDisposed) { @@ -647,9 +642,6 @@ void ConfigurationController::ThrowIfDisposed (void) const } } - - - //===== ConfigurationController::Implementation =============================== ConfigurationController::Implementation::Implementation ( diff --git a/sd/source/ui/inc/framework/ConfigurationController.hxx b/sd/source/ui/inc/framework/ConfigurationController.hxx index 1175631f0dac..941047e5e6f8 100644 --- a/sd/source/ui/inc/framework/ConfigurationController.hxx +++ b/sd/source/ui/inc/framework/ConfigurationController.hxx @@ -208,8 +208,8 @@ private: /** When the called object has already been disposed this method throws an exception and does not return. */ - void ThrowIfDisposed (void) const - throw (css::lang::DisposedException); + void ThrowIfDisposed () const + throw (css::lang::DisposedException, css::uno::RuntimeException); }; } } // end of namespace sd::framework