summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-08-11 23:01:15 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-08-11 23:01:15 +0200
commit91c03d370d36b7a802b841394fb6afdccbd34893 (patch)
treeea4309dccc091bcb507549a6f254690a496fe3ae /cmdline
parentf7f0d6c7560a8f71707e7852a512469147aa9f84 (diff)
fix a few more cppcheck performance and scope warnings
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-sortpkgs.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-sortpkgs.cc b/cmdline/apt-sortpkgs.cc
index 171b0ba13..f95a434cc 100644
--- a/cmdline/apt-sortpkgs.cc
+++ b/cmdline/apt-sortpkgs.cc
@@ -106,7 +106,7 @@ bool DoIt(string InFile)
// Emit
unsigned char *Buffer = new unsigned char[Largest+1];
- for (vector<PkgName>::iterator I = List.begin(); I != List.end(); I++)
+ for (vector<PkgName>::iterator I = List.begin(); I != List.end(); ++I)
{
// Read in the Record.
if (Fd.Seek(I->Offset) == false || Fd.Read(Buffer,I->Length) == false)