From ae34e0ff3b0c3068f11907609d690a76c7fadc7d Mon Sep 17 00:00:00 2001 From: Peter Schojer Date: Mon, 5 Nov 2007 07:34:09 +0000 Subject: [PATCH] gcc compile fixes --- Foundation/include/Poco/AccessExpireStrategy.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Foundation/include/Poco/AccessExpireStrategy.h b/Foundation/include/Poco/AccessExpireStrategy.h index 419a60cdb..9b16252dd 100644 --- a/Foundation/include/Poco/AccessExpireStrategy.h +++ b/Foundation/include/Poco/AccessExpireStrategy.h @@ -1,7 +1,7 @@ // // AccessExpireStrategy.h // -// $Id: //poco/Main/Foundation/include/Poco/AccessExpireStrategy.h#2 $ +// $Id: //poco/Main/Foundation/include/Poco/AccessExpireStrategy.h#3 $ // // Library: Foundation // Package: Cache @@ -61,7 +61,7 @@ class AccessExpireStrategy: public ExpireStrategy /// An AccessExpireStrategy implements time and access based expiration of cache entries { public: - AccessExpireStrategy(Timestamp::TimeDiff expireTimeInMilliSec): ExpireStrategy(expireTimeInMilliSec) + AccessExpireStrategy(Timestamp::TimeDiff expireTimeInMilliSec): ExpireStrategy(expireTimeInMilliSec) /// Create an expire strategy. Note that the smallest allowed caching time is 25ms. /// Anything lower than that is not useful with current operating systems. { @@ -74,13 +74,13 @@ public: void onGet(const void*, const TKey& key) { // get triggers an update to the expiration time - Iterator it = _keys.find(key); - if (it != _keys.end()) + typename ExpireStrategy::Iterator it = this->_keys.find(key); + if (it != this->_keys.end()) { - _keyIndex.erase(it->second); + this->_keyIndex.erase(it->second); Timestamp now; - IndexIterator itIdx = - _keyIndex.insert(typename TimeIndex::value_type(now, key)); + typename ExpireStrategy::IndexIterator itIdx = + this->_keyIndex.insert(typename ExpireStrategy::TimeIndex::value_type(now, key)); it->second = itIdx; } }