]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/cacheiterators.h
warning: cast from type A to type B casts away qualifiers [-Wcast-qual]
[apt.git] / apt-pkg / cacheiterators.h
index ca8bc5ca055fe7dcc42157245872a5956c06b589..64fec5daabf9070927e15502c72fb2906974308b 100644 (file)
@@ -79,7 +79,7 @@ template<typename Str, typename Itr> class pkgCache::Iterator :
        void ReMap(void const * const oldMap, void const * const newMap) {
                if (Owner == 0 || S == 0)
                        return;
-               S += (Str*)(newMap) - (Str*)(oldMap);
+               S += (Str const * const)(newMap) - (Str const * const)(oldMap);
        }
 
        // Constructors - look out for the variable assigning