diff options
author | Michael Vogt <egon@tas> | 2006-12-07 11:45:13 +0100 |
---|---|---|
committer | Michael Vogt <egon@tas> | 2006-12-07 11:45:13 +0100 |
commit | 207825063be51d68768e242f06b26ee6fccd3aaf (patch) | |
tree | 4c755597279d2574e787460c5d0f3bc34d132a64 /apt-pkg/cacheiterators.h | |
parent | 7106240056767caad5a55fe9c542842065cb5829 (diff) | |
parent | 1c05ebd6da9491d316997a98db1451f7b0526603 (diff) |
merged with apt--mvo
Diffstat (limited to 'apt-pkg/cacheiterators.h')
-rw-r--r-- | apt-pkg/cacheiterators.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h index c3a0d0a5a..2b326bd65 100644 --- a/apt-pkg/cacheiterators.h +++ b/apt-pkg/cacheiterators.h @@ -107,7 +107,7 @@ class pkgCache::VerIterator // Iteration void operator ++(int) {if (Ver != Owner->VerP) Ver = Owner->VerP + Ver->NextVer;}; inline void operator ++() {operator ++(0);}; - inline bool end() const {return Ver == Owner->VerP?true:false;}; + inline bool end() const {return Owner == NULL || (Ver == Owner->VerP?true:false);}; inline void operator =(const VerIterator &B) {Ver = B.Ver; Owner = B.Owner;}; // Comparison |