]> git.saurik.com Git - apt.git/commitdiff
avoid triggering the c++11 erase api change on travis
authorDavid Kalnischkies <david@kalnischkies.de>
Wed, 2 Sep 2015 10:35:22 +0000 (12:35 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 2 Sep 2015 10:35:22 +0000 (12:35 +0200)
Git-Dch: Ignore

apt-pkg/contrib/srvrec.cc

index 1746682743e8d14b1a285f6944526aa730defe71..837f2c84ea28b1d4fbea19d42f0e6edae3216575 100644 (file)
@@ -168,8 +168,8 @@ SrvRec PopFromSrvRecs(std::vector<SrvRec> &Recs)
 #endif
 
    // shuffle in a very simplistic way for now (equal weights)
-   std::vector<SrvRec>::const_iterator I = Recs.begin();
-   std::vector<SrvRec>::const_iterator const J = std::find_if(Recs.cbegin(), Recs.cend(),
+   std::vector<SrvRec>::iterator I = Recs.begin();
+   std::vector<SrvRec>::iterator const J = std::find_if(Recs.begin(), Recs.end(),
         [&I](SrvRec const &J) { return I->priority != J.priority; });
 
    // clock seems random enough.