From: David Kalnischkies Date: Sat, 2 Jan 2010 16:19:07 +0000 (+0100) Subject: Fix the following gcc-4.5 buildfailure in pkgcache.cc by following the suggestion: X-Git-Tag: 0.8.0~39^2~25 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/749eb4cf0416b1eb7a950bbfce2937f04ab0b6ab Fix the following gcc-4.5 buildfailure in pkgcache.cc by following the suggestion: pkgcache.cc: In member function ‘const char* pkgCache::PkgIterator::CandVersion() const’: pkgcache.cc:301:51: error: cannot call constructor ‘pkgPolicy::pkgPolicy’ directly pkgcache.cc:301:51: note: for a function-style cast, remove the redundant ‘::pkgPolicy’ --- diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index 997ff51fe..eb7e4957a 100644 --- a/apt-pkg/pkgcache.cc +++ b/apt-pkg/pkgcache.cc @@ -298,7 +298,7 @@ const char * pkgCache::PkgIterator::CandVersion() const { //TargetVer is empty, so don't use it. - VerIterator version = pkgPolicy::pkgPolicy(Owner).GetCandidateVer(*this); + VerIterator version = pkgPolicy(Owner).GetCandidateVer(*this); if (version.IsGood()) return version.VerStr(); return 0;