]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-worker.cc
travis: move 'make' into the install target
[apt.git] / apt-pkg / acquire-worker.cc
index 889768030f61ac576ae943fc21ed870d56ac5587..45ee6dde3eecdf4fb35ecab2c3352e64ff0f8080 100644 (file)
@@ -254,8 +254,8 @@ bool pkgAcquire::Worker::RunMessages()
            ItemDone();
 
            // Change the status so that it can be dequeued
-           for (pkgAcquire::Queue::QItem::owner_iterator O = Itm->Owners.begin(); O != Itm->Owners.end(); ++O)
-              (*O)->Status = pkgAcquire::Item::StatIdle;
+           for (auto const &O: Itm->Owners)
+              O->Status = pkgAcquire::Item::StatIdle;
            // Mark the item as done (taking care of all queues)
            // and then put it in the main queue again
            std::vector<Item*> const ItmOwners = Itm->Owners;