From 39c75fd93e9034ca8855a29c84bd1c3262cf81e0 Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Wed, 12 Sep 2001 10:27:54 +0000 Subject: #92075#: execption specification corrected --- UnoControls/source/base/basecontainercontrol.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/UnoControls/source/base/basecontainercontrol.cxx b/UnoControls/source/base/basecontainercontrol.cxx index 48ccda4d7519..f3228fc1704f 100644 --- a/UnoControls/source/base/basecontainercontrol.cxx +++ b/UnoControls/source/base/basecontainercontrol.cxx @@ -2,9 +2,9 @@ * * $RCSfile: basecontainercontrol.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: as $ $Date: 2000-10-12 10:33:18 $ + * last change: $Author: mba $ $Date: 2001-09-12 11:27:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -306,13 +306,10 @@ void SAL_CALL BaseContainerControl::disposing( const EventObject& rEvent ) throw // XControlContainer //____________________________________________________________________________________________________________ -void SAL_CALL BaseContainerControl::addControl ( const OUString& rName, const Reference< XControl > & rControl ) throw( IllegalArgumentException, RuntimeException ) +void SAL_CALL BaseContainerControl::addControl ( const OUString& rName, const Reference< XControl > & rControl ) throw( RuntimeException ) { - // only correct references can add to list!!! if ( !rControl.is () ) - { - throw IllegalArgumentException (); - } + return; // take memory for new item IMPL_ControlInfo* pNewControl = new IMPL_ControlInfo ; -- cgit v1.2.1