summaryrefslogtreecommitdiff
path: root/cmdline/apt-mark.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-03-09 16:00:23 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2015-03-16 18:01:28 +0100
commit3bf4c93ac241e270c374d1a49be11fb4d673abc1 (patch)
treecbf229ef3891931795c43bd75cc9fd9927e200bf /cmdline/apt-mark.cc
parent2b4cead3c8eb3afb5aa5390b88c511477a7628d8 (diff)
(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
Diffstat (limited to 'cmdline/apt-mark.cc')
-rw-r--r--cmdline/apt-mark.cc2
1 files changed, 1 insertions, 1 deletions
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)