From a0a724d57c0a763a0127b81e87765b94eb8c7da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 28 May 2014 13:17:30 +0100 Subject: [PATCH] coverity#707105 Uncaught exception Change-Id: Ice8f9633a9dddd492ce8c5d1d88961ecbed59216 --- sd/source/ui/framework/module/ModuleController.cxx | 13 ++----------- sd/source/ui/inc/framework/ModuleController.hxx | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/sd/source/ui/framework/module/ModuleController.cxx b/sd/source/ui/framework/module/ModuleController.cxx index 8269c73ba45f..72d2e9829175 100644 --- a/sd/source/ui/framework/module/ModuleController.cxx +++ b/sd/source/ui/framework/module/ModuleController.cxx @@ -91,21 +91,15 @@ Sequence SAL_CALL ModuleController_getSupportedServiceNames (void) return Sequence(&sServiceName, 1); } - - - //===== ModuleController ====================================================== - Reference ModuleController::CreateInstance ( const Reference& rxContext) { return new ModuleController(rxContext); } - - - -ModuleController::ModuleController (const Reference& rxContext) throw() +ModuleController::ModuleController (const Reference& rxContext) + throw (std::exception) : ModuleControllerInterfaceBase(MutexOwner::maMutex), mxController(), mpResourceToFactoryMap(new ResourceToFactoryMap()), @@ -115,9 +109,6 @@ ModuleController::ModuleController (const Reference& rxContex LoadFactories(rxContext); } - - - ModuleController::~ModuleController (void) throw() { } diff --git a/sd/source/ui/inc/framework/ModuleController.hxx b/sd/source/ui/inc/framework/ModuleController.hxx index 50c7cb720f92..3eb78437c905 100644 --- a/sd/source/ui/inc/framework/ModuleController.hxx +++ b/sd/source/ui/inc/framework/ModuleController.hxx @@ -100,7 +100,7 @@ private: ModuleController ( const css::uno::Reference& rxContext) - throw(); + throw (std::exception); ModuleController (void); // Not implemented. ModuleController (const ModuleController&); // Not implemented. virtual ~ModuleController (void) throw();