r17691 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17690‎ | r17691 | r17692 >
Date:04:38, 15 November 2006
Author:river
Status:old
Tags:
Comment:
lastuse needs accessor
Modified paths:
  • /trunk/willow/src/include/cache.h (modified) (history)

Diff [purge]

Index: trunk/willow/src/include/cache.h
@@ -62,6 +62,10 @@
6363 _builtsz = _headers.length();
6464 }
6565
 66+ time_t lastuse(void) const {
 67+ return _lastuse;
 68+ }
 69+
6670 private:
6771 friend struct httpcache;
6872 friend struct caching_filter;
@@ -108,7 +112,7 @@
109113 struct lru_comparator {
110114 bool operator() (entmap::iterator a,
111115 entmap::iterator b) const {
112 - return a->second->_lastuse < b->second->_lastuse;
 116+ return a->second->lastuse() < b->second->lastuse();
113117 }
114118 };
115119