From: David Kalnischkies Date: Mon, 9 Mar 2015 15:00:23 +0000 (+0100) Subject: (error) Same iterator is used with different containers X-Git-Tag: 1.1.exp9~140^2~74 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/3bf4c93ac241e270c374d1a49be11fb4d673abc1 (error) Same iterator is used with different containers cppcheck reports this error, its not really a problem for us as the API can actually deal with it via implicit conversion, but being explicit can't hurt and the less reported errors the better. Git-Dch: Ignore --- diff --git a/cmdline/apt-mark.cc b/cmdline/apt-mark.cc index 8974397c9..47777009b 100644 --- a/cmdline/apt-mark.cc +++ b/cmdline/apt-mark.cc @@ -279,7 +279,7 @@ static bool DoHold(CommandLine &CmdL) { if (Pkg->CurrentVer != 0) continue; - keepoffset.insert(Pkg); + keepoffset.insert(*Pkg); } if (keepoffset.empty() == false)