diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-18 13:40:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-19 09:35:59 +0200 |
commit | 30f7ce30c92e1add033cdea0a78cea5563758513 (patch) | |
tree | ff44ddb79dcbac9aab52b087dbe6573f4cff4b11 /connectivity/source/cpool | |
parent | 0f7e64f3edbc1a49e9681d12ce24326150a8a675 (diff) |
loplugin:constparams in connectivity
Change-Id: I9b81c6227fb3c89a832640058a11444f72019694
Reviewed-on: https://gerrit.libreoffice.org/40155
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/cpool')
-rw-r--r-- | connectivity/source/cpool/ZConnectionPool.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/cpool/ZConnectionPool.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/cpool/ZConnectionPool.cxx b/connectivity/source/cpool/ZConnectionPool.cxx index ce485b45cd75..346f102e8401 100644 --- a/connectivity/source/cpool/ZConnectionPool.cxx +++ b/connectivity/source/cpool/ZConnectionPool.cxx @@ -261,7 +261,7 @@ void OConnectionPool::invalidatePooledConnections() m_xInvalidator->start(); } -Reference< XConnection> OConnectionPool::getPooledConnection(TConnectionMap::iterator& _rIter) +Reference< XConnection> OConnectionPool::getPooledConnection(TConnectionMap::iterator const & _rIter) { Reference<XConnection> xConnection; diff --git a/connectivity/source/cpool/ZConnectionPool.hxx b/connectivity/source/cpool/ZConnectionPool.hxx index 04119d92d7a1..b23db6005fa4 100644 --- a/connectivity/source/cpool/ZConnectionPool.hxx +++ b/connectivity/source/cpool/ZConnectionPool.hxx @@ -123,7 +123,7 @@ namespace connectivity private: css::uno::Reference< css::sdbc::XConnection> createNewConnection(const OUString& _rURL, const css::uno::Sequence< css::beans::PropertyValue >& _rInfo); - css::uno::Reference< css::sdbc::XConnection> getPooledConnection(TConnectionMap::iterator& _rIter); + css::uno::Reference< css::sdbc::XConnection> getPooledConnection(TConnectionMap::iterator const & _rIter); // calculate the timeout and the corresponding ALiveCount void calculateTimeOuts(); |