]> git.saurik.com Git - apt.git/commitdiff
Drop C++11 elements from headers
authorJulian Andres Klode <jak@debian.org>
Tue, 11 Aug 2015 09:49:21 +0000 (11:49 +0200)
committerJulian Andres Klode <jak@debian.org>
Tue, 11 Aug 2015 11:59:15 +0000 (13:59 +0200)
apt-pkg/cacheiterators.h
apt-pkg/pkgcachegen.cc
apt-pkg/pkgcachegen.h

index 1063d6f9e38920cfd04b60327f64f381c35cd98f..f8321079aee5407ecb598a002b00f97abf237cc3 100644 (file)
@@ -329,8 +329,8 @@ class pkgCache::DepIterator : public Iterator<Dependency, DepIterator> {
           DependencyProxy const * operator->() const { return this; }
           DependencyProxy * operator->() { return this; }
        };
-       inline DependencyProxy operator->() const {return { S2->Version, S2->Package, S->ID, S2->Type, S2->CompareOp, S->ParentVer, S->DependencyData, S->NextRevDepends, S->NextDepends, S2->NextData };}
-       inline DependencyProxy operator->() {return { S2->Version, S2->Package, S->ID, S2->Type, S2->CompareOp, S->ParentVer, S->DependencyData, S->NextRevDepends, S->NextDepends, S2->NextData };}
+       inline DependencyProxy operator->() const {return (DependencyProxy) { S2->Version, S2->Package, S->ID, S2->Type, S2->CompareOp, S->ParentVer, S->DependencyData, S->NextRevDepends, S->NextDepends, S2->NextData };}
+       inline DependencyProxy operator->() {return (DependencyProxy) { S2->Version, S2->Package, S->ID, S2->Type, S2->CompareOp, S->ParentVer, S->DependencyData, S->NextRevDepends, S->NextDepends, S2->NextData };}
        void ReMap(void const * const oldMap, void const * const newMap)
        {
                Iterator<Dependency, DepIterator>::ReMap(oldMap, newMap);
index 07a21d27fb1e2c3e5481f90cad046c71b8f78d80..ef7afda944d177f21ab56a322e2a19c0d5bf0c8e 100644 (file)
@@ -42,7 +42,8 @@
 #include <unistd.h>
 
 #include <apti18n.h>
-                                                                       /*}}}*/
+
+template<class T> using Dynamic = pkgCacheGenerator::Dynamic<T>;                                                       /*}}}*/
 typedef std::vector<pkgIndexFile *>::iterator FileIterator;
 template <typename Iter> std::vector<Iter*> pkgCacheGenerator::Dynamic<Iter>::toReMap;
 
index 97b91ba9ff1345468bb5d839c42c2ffd628832bc..46fccdaa5eecd6d5f39048d9bbd7a83dfbf6b996 100644 (file)
@@ -135,7 +135,6 @@ class APT_HIDDEN pkgCacheListParser
 {
    pkgCacheGenerator *Owner;
    friend class pkgCacheGenerator;
-   template<class T> using Dynamic = pkgCacheGenerator::Dynamic<T>;
 
    // Some cache items
    pkgCache::VerIterator OldDepVer;