]> git.saurik.com Git - apt.git/commit - methods/mirror.cc
cppcheck complains about some possible speed improvements which could be
authorDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 11 Aug 2011 18:53:28 +0000 (20:53 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 11 Aug 2011 18:53:28 +0000 (20:53 +0200)
commitf7f0d6c7560a8f71707e7852a512469147aa9f84
tree5bec681b4e798a2b35bea180213df399c51920d9
parentdd6882853b4555a6113740afca417acbaa060043
cppcheck complains about some possible speed improvements which could be
done on the mirco-optimazation level, so lets fix them:
 (performance) Possible inefficient checking for emptiness.
 (performance) Prefer prefix ++/-- operators for non-primitive types.
42 files changed:
apt-pkg/acquire-item.cc
apt-pkg/acquire-method.cc
apt-pkg/acquire.cc
apt-pkg/algorithms.cc
apt-pkg/aptconfiguration.cc
apt-pkg/cdrom.cc
apt-pkg/clean.cc
apt-pkg/contrib/configuration.cc
apt-pkg/contrib/error.cc
apt-pkg/contrib/strutl.cc
apt-pkg/deb/debindexfile.cc
apt-pkg/deb/deblistparser.cc
apt-pkg/deb/debmetaindex.cc
apt-pkg/deb/debrecords.cc
apt-pkg/deb/dpkgpm.cc
apt-pkg/depcache.cc
apt-pkg/indexcopy.cc
apt-pkg/orderlist.cc
apt-pkg/packagemanager.cc
apt-pkg/pkgcache.cc
apt-pkg/pkgcachegen.cc
apt-pkg/pkgrecords.cc
apt-pkg/policy.cc
apt-pkg/sourcelist.cc
apt-pkg/srcrecords.cc
apt-pkg/vendorlist.cc
apt-pkg/versionmatch.cc
cmdline/apt-cache.cc
cmdline/apt-get.cc
ftparchive/apt-ftparchive.cc
ftparchive/multicompress.cc
ftparchive/override.cc
ftparchive/writer.cc
methods/ftp.cc
methods/gpgv.cc
methods/http.cc
methods/mirror.cc
test/libapt/assert.h
test/libapt/getarchitectures_test.cc
test/libapt/getlanguages_test.cc
test/libapt/getlistoffilesindir_test.cc
test/test_udevcdrom.cc