Procházet zdrojové kódy

(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
David Kalnischkies před 11 roky
rodič
revize
3bf4c93ac2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      cmdline/apt-mark.cc

+ 1 - 1
cmdline/apt-mark.cc

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