Procházet zdrojové kódy

add a missing non-const & Accessors to the Iterator class

David Kalnischkies před 16 roky
rodič
revize
9552aeeb15
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      apt-pkg/cacheiterators.h

+ 1 - 0
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;};