diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-08-11 23:01:15 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-08-11 23:01:15 +0200 |
commit | 91c03d370d36b7a802b841394fb6afdccbd34893 (patch) | |
tree | ea4309dccc091bcb507549a6f254690a496fe3ae /cmdline | |
parent | f7f0d6c7560a8f71707e7852a512469147aa9f84 (diff) |
fix a few more cppcheck performance and scope warnings
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-sortpkgs.cc | 2 |
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) |