From 258b9e512c4001e806c5c0966acecd3d742ec6e9 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Wed, 4 Nov 2015 21:08:55 +0100 Subject: apply various suggestions made by cppcheck Reported-By: cppcheck Git-Dch: Ignore --- apt-inst/contrib/extracttar.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-inst/contrib') diff --git a/apt-inst/contrib/extracttar.cc b/apt-inst/contrib/extracttar.cc index 8be61c5ad..60360053e 100644 --- a/apt-inst/contrib/extracttar.cc +++ b/apt-inst/contrib/extracttar.cc @@ -101,7 +101,7 @@ bool ExtractTar::StartGzip() std::vector const compressors = APT::Configuration::getCompressors(); std::vector::const_iterator compressor = compressors.begin(); - for (; compressor != compressors.end(); compressor++) { + for (; compressor != compressors.end(); ++compressor) { if (compressor->Name == DecompressProg) { return InFd.OpenDescriptor(File.Fd(), FileFd::ReadOnly, *compressor, false); } -- cgit v1.2.3