diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 00:06:50 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 00:06:50 +0000 |
commit | e183c71dd562604ab13f11fd18a129d217e36708 (patch) | |
tree | 1f9d738c7e79abbf4bec2f4e9011b816558a0f7f /connectivity/source/cpool/ZConnectionPool.cxx | |
parent | INTEGRATION: CWS warnings01 (1.26.20); FILE MERGED (diff) | |
download | core-e183c71dd562604ab13f11fd18a129d217e36708.tar.gz core-e183c71dd562604ab13f11fd18a129d217e36708.zip |
INTEGRATION: CWS warnings01 (1.16.30); FILE MERGED
2005/11/16 12:58:47 fs 1.16.30.1: #i57457# warning free code
Diffstat (limited to 'connectivity/source/cpool/ZConnectionPool.cxx')
-rw-r--r-- | connectivity/source/cpool/ZConnectionPool.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/cpool/ZConnectionPool.cxx b/connectivity/source/cpool/ZConnectionPool.cxx index b81e21349b02..64b4d77e322f 100644 --- a/connectivity/source/cpool/ZConnectionPool.cxx +++ b/connectivity/source/cpool/ZConnectionPool.cxx @@ -4,9 +4,9 @@ * * $RCSfile: ZConnectionPool.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: rt $ $Date: 2005-09-08 05:16:04 $ + * last change: $Author: hr $ $Date: 2006-06-20 01:06:50 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -120,7 +120,7 @@ OConnectionPool::OConnectionPool(const Reference< XDriver >& _xDriver, xProp->addPropertyChangeListener(getTimeoutNodeName(),this); OPoolCollection::getNodeValue(getTimeoutNodeName(),m_xDriverNode) >>= m_nALiveCount; - calculateTimeOuts(m_nALiveCount); + calculateTimeOuts(); m_xInvalidator = new OPoolTimer(this,::vos::TTimeValue(m_nTimeOut,0)); m_xInvalidator->start(); @@ -344,11 +344,11 @@ void SAL_CALL OConnectionPool::propertyChange( const PropertyChangeEvent& evt ) if(getTimeoutNodeName() == evt.PropertyName) { evt.NewValue >>= m_nALiveCount; - calculateTimeOuts(m_nALiveCount); + calculateTimeOuts(); } } // ----------------------------------------------------------------------------- -void OConnectionPool::calculateTimeOuts(sal_Int32 _nTimeOut) +void OConnectionPool::calculateTimeOuts() { sal_Int32 nTimeOutCorrection = 10; if(m_nALiveCount < 100) |