summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-03-09 22:23:35 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-10 07:10:49 +0100
commit365ec7b14649b46c59e7dc3a1530b2b37bc908da (patch)
tree15ae92130a168ea808f57f5cac62ca0348a5c34f /connectivity
parentf33eb08a2b74e5de033af9b5f5283b220ac58ded (diff)
tdf#39593 use existing clearConnectionPools() method
Change-Id: I318508531b3f52da2d699e6d35c7cda72d4de115 Reviewed-on: https://gerrit.libreoffice.org/68981 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/cpool/ZPoolCollection.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/connectivity/source/cpool/ZPoolCollection.cxx b/connectivity/source/cpool/ZPoolCollection.cxx
index 7ae66038bdf7..ae32b27c38e2 100644
--- a/connectivity/source/cpool/ZPoolCollection.cxx
+++ b/connectivity/source/cpool/ZPoolCollection.cxx
@@ -437,11 +437,7 @@ void SAL_CALL OPoolCollection::propertyChange( const css::beans::PropertyChangeE
{
m_aDriverProxies.clear();
m_aDriverProxies = MapDriver2DriverRef();
- for(auto& rEntry : m_aPools)
- {
- rEntry.second->clear(false);
- }
- m_aPools.clear();
+ clearConnectionPools(false);
}
}
else if(evt.Source.is())