]> git.saurik.com Git - apt.git/commit
use c++11 algorithms to avoid strange compiler warnings
authorDavid Kalnischkies <david@kalnischkies.de>
Sat, 29 Aug 2015 10:28:24 +0000 (12:28 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Sat, 29 Aug 2015 10:33:30 +0000 (12:33 +0200)
commit8dd562a894c2472e3705fe13c212f665b55744a9
treea042b35a689ba64e0a76207115fb937cefa8f0c2
parentd7a51997c30b2098bb60b3397095ec58ec825303
use c++11 algorithms to avoid strange compiler warnings

Nobody knows what makes the 'unable to optimize loop' warning to appear
in the sourceslist minus-options parsing, especially if we use a foreach
loop, but we can replace it with some nice c++11 algorithm+lambda usage,
which also helps in making even clearer what happens here.

And as this would be a lonely change, lets do it for a few more loops as
well where I might or might not have seen the warning at some point in
time, too.

Git-Dch: Ignore
apt-pkg/aptconfiguration.cc
apt-pkg/cacheset.cc
apt-pkg/deb/debmetaindex.cc
apt-pkg/sourcelist.cc