summaryrefslogtreecommitdiff
path: root/apt-pkg/cacheiterators.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-03-19 13:06:48 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-03-19 13:06:48 +0100
commit9552aeeb1524d5b659ae209becb322b3d6763183 (patch)
tree96683ee48ad4ddaa48e734bd46efc663cdc106a4 /apt-pkg/cacheiterators.h
parentd8b3cbb61d93228ec984befefa1abfb16555f12a (diff)
add a missing non-const & Accessors to the Iterator class
Diffstat (limited to 'apt-pkg/cacheiterators.h')
-rw-r--r--apt-pkg/cacheiterators.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h
index 28e062f3c..e2ca74683 100644
--- a/apt-pkg/cacheiterators.h
+++ b/apt-pkg/cacheiterators.h
@@ -62,6 +62,7 @@ template<typename Str, typename Itr> class pkgCache::Iterator {
inline Str const *operator ->() const {return S;};
inline operator Str *() {return S == OwnerPointer() ? 0 : S;};
inline operator Str const *() const {return S == OwnerPointer() ? 0 : S;};
+ inline Str &operator *() {return *S;};
inline Str const &operator *() const {return *S;};
inline pkgCache *Cache() {return Owner;};