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’
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;