summaryrefslogtreecommitdiff
path: root/apt-pkg/cacheiterators.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-07-11 19:19:35 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-07-11 19:19:35 +0200
commitf7a35f2e813cff49470b4c4cb5b79cf6277f97d9 (patch)
tree9f931d7a903d8d0dbc2dae1ed54d044ada60d682 /apt-pkg/cacheiterators.h
parentff1ad6fdb01ad8d477ab711e4f6fe006d622f3bc (diff)
rename ReOwn to ReMap in the cacheiterators
Diffstat (limited to 'apt-pkg/cacheiterators.h')
-rw-r--r--apt-pkg/cacheiterators.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h
index eb8dee5e3..1dcc34532 100644
--- a/apt-pkg/cacheiterators.h
+++ b/apt-pkg/cacheiterators.h
@@ -75,8 +75,8 @@ template<typename Str, typename Itr> class pkgCache::Iterator :
inline bool IsGood() const { return S && Owner && ! end();};
inline unsigned long Index() const {return S - OwnerPointer();};
- void ReOwn(pkgCache &newOwner, void const * const oldMap, void const * const newMap) {
- if (S == 0)
+ void ReMap(void const * const oldMap, void const * const newMap) {
+ if (Owner == 0 || S == 0)
return;
S += (Str*)(newMap) - (Str*)(oldMap);
}