summaryrefslogtreecommitdiffstats
path: root/cppuhelper/source/propshlp.cxx
diff options
context:
space:
mode:
authorJörg Budischewski <jbu@openoffice.org>2000-10-06 15:01:45 +0000
committerJörg Budischewski <jbu@openoffice.org>2000-10-06 15:01:45 +0000
commit8085a1529177056109bfa67f88357a062bab344d (patch)
tree5ae35a8acd8060163a9e0e9a0d416ef88f9c291e /cppuhelper/source/propshlp.cxx
parentadd/removeListener-methods added to OBroadcastHelper (diff)
downloadcore-8085a1529177056109bfa67f88357a062bab344d.tar.gz
core-8085a1529177056109bfa67f88357a062bab344d.zip
now using the new add/removeListener-methods of OBroadcastHelper
Diffstat (limited to 'cppuhelper/source/propshlp.cxx')
-rw-r--r--cppuhelper/source/propshlp.cxx31
1 files changed, 5 insertions, 26 deletions
diff --git a/cppuhelper/source/propshlp.cxx b/cppuhelper/source/propshlp.cxx
index 1783d853908e..a76b6cea9d60 100644
--- a/cppuhelper/source/propshlp.cxx
+++ b/cppuhelper/source/propshlp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: propshlp.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 15:26:10 $
+ * last change: $Author: jbu $ $Date: 2000-10-06 16:01:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -726,35 +726,14 @@ void OPropertySetHelper::addPropertiesChangeListener (
const Reference < XPropertiesChangeListener > & rListener
)
{
- MutexGuard aGuard( rBHelper.rMutex );
- OSL_ENSHURE( !rBHelper.bInDispose, "do not addPropertyChangeListener in the dispose call" );
- OSL_ENSHURE( !rBHelper.bDisposed, "object is disposed" );
- // all listeners are automaticly released in a dispose call
- if( !rBHelper.bInDispose && !rBHelper.bDisposed )
- {
- // Listener wird zu allen Properties angemeldet, besser ist
- // sie ueber die Namen anzumelden
- rBHelper.aLC.addInterface(
- getPropertiesTypeIdentifier( ),
- rListener
- );
- }
+ rBHelper.addListener( getCppuType(&rListener) , rListener );
}
// XMultiPropertySet
void OPropertySetHelper::removePropertiesChangeListener
- ( const Reference < XPropertiesChangeListener > & rxListener )
+ ( const Reference < XPropertiesChangeListener > & rListener )
{
- MutexGuard aGuard( rBHelper.rMutex );
- OSL_ENSHURE( !rBHelper.bDisposed, "object is disposed" );
- // all listeners are automaticly released in a dispose call
- if( !rBHelper.bInDispose && !rBHelper.bDisposed )
- {
- rBHelper.aLC.removeInterface(
- getPropertiesTypeIdentifier( ),
- rxListener
- );
- }
+ rBHelper.removeListener( getCppuType(&rListener) , rListener );
}
// XMultiPropertySet