summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-05-31 08:33:17 +0000
committerFrank Schönheit <fs@openoffice.org>2001-05-31 08:33:17 +0000
commit39f1b66cb9c26c1e7d27db3840c04c454754af7a (patch)
tree3f950da7e0848ed6fff63e557e5690cbc7b94385 /comphelper
parentde059293437eacd105d1fcef789ac881a160bb1e (diff)
#86416# proper guarding in startListening
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/property/propagg.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/comphelper/source/property/propagg.cxx b/comphelper/source/property/propagg.cxx
index fcff4c49d597..a796dc5f333a 100644
--- a/comphelper/source/property/propagg.cxx
+++ b/comphelper/source/property/propagg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: propagg.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: jl $ $Date: 2001-03-22 13:32:35 $
+ * last change: $Author: fs $ $Date: 2001-05-31 09:33:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -454,10 +454,10 @@ void OPropertySetAggregationHelper::setAggregation(const ::com::sun::star::uno:
//------------------------------------------------------------------------------
void OPropertySetAggregationHelper::startListening()
{
+ osl::MutexGuard aGuard(rBHelper.rMutex);
+
if (!m_bListening && m_xAggregateSet.is())
{
- osl::MutexGuard aGuard(rBHelper.rMutex);
-
// als einziger Listener anmelden
::com::sun::star::uno::Sequence< ::rtl::OUString > aPropertyNames;
m_xAggregateMultiSet->addPropertiesChangeListener(aPropertyNames, this);