]> git.saurik.com Git - apt.git/commitdiff
(error) Same iterator is used with different containers
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 9 Mar 2015 15:00:23 +0000 (16:00 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 16 Mar 2015 17:01:28 +0000 (18:01 +0100)
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

cmdline/apt-mark.cc

index 8974397c94e61f21add4fcef477302bbe6b8355b..47777009b0715695c8f823f7052f89c8b38061b2 100644 (file)
@@ -279,7 +279,7 @@ static bool DoHold(CommandLine &CmdL)
    {
       if (Pkg->CurrentVer != 0)
         continue;
-      keepoffset.insert(Pkg);
+      keepoffset.insert(*Pkg);
    }
 
    if (keepoffset.empty() == false)