summaryrefslogtreecommitdiff
path: root/comphelper/source/misc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-04 15:01:55 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-05 06:26:22 +0000
commitb9372f0e909c32d143540bf0ce7b79003d9b26e9 (patch)
tree9c8ecd561d296b66427974d0daebe726ab0f4f20 /comphelper/source/misc
parent50bb5eddaac2b16f387ba610cdcfd934269dc73c (diff)
loplugin:constantparam in comphelper
Change-Id: I81e6af1ee869caa3b40d2d00604e8e22517d92d7 Reviewed-on: https://gerrit.libreoffice.org/23808 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'comphelper/source/misc')
-rw-r--r--comphelper/source/misc/SelectionMultiplex.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/comphelper/source/misc/SelectionMultiplex.cxx b/comphelper/source/misc/SelectionMultiplex.cxx
index 26a191c21f30..9f853ed28b05 100644
--- a/comphelper/source/misc/SelectionMultiplex.cxx
+++ b/comphelper/source/misc/SelectionMultiplex.cxx
@@ -61,12 +61,11 @@ void OSelectionChangeListener::setAdapter(OSelectionChangeMultiplexer* pAdapter)
}
}
-OSelectionChangeMultiplexer::OSelectionChangeMultiplexer(OSelectionChangeListener* _pListener, const Reference< XSelectionSupplier>& _rxSet, bool _bAutoReleaseSet)
+OSelectionChangeMultiplexer::OSelectionChangeMultiplexer(OSelectionChangeListener* _pListener, const Reference< XSelectionSupplier>& _rxSet)
:m_xSet(_rxSet)
,m_pListener(_pListener)
,m_nLockCount(0)
,m_bListening(false)
- ,m_bAutoSetRelease(_bAutoReleaseSet)
{
m_pListener->setAdapter(this);
osl_atomic_increment(&m_refCount);
@@ -108,8 +107,7 @@ void OSelectionChangeMultiplexer::dispose()
m_pListener = nullptr;
m_bListening = false;
- if (m_bAutoSetRelease)
- m_xSet = nullptr;
+ m_xSet = nullptr;
}
}
@@ -130,8 +128,7 @@ void SAL_CALL OSelectionChangeMultiplexer::disposing( const EventObject& _rSour
m_pListener = nullptr;
m_bListening = false;
- if (m_bAutoSetRelease)
- m_xSet = nullptr;
+ m_xSet = nullptr;
}
// XSelectionChangeListener