From 749eb4cf0416b1eb7a950bbfce2937f04ab0b6ab Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 2 Jan 2010 17:19:07 +0100 Subject: =?UTF-8?q?Fix=20the=20following=20gcc-4.5=20buildfailure=20in=20p?= =?UTF-8?q?kgcache.cc=20by=20following=20the=20suggestion:=20pkgcache.cc:?= =?UTF-8?q?=20In=20member=20function=20=E2=80=98const=20char*=20pkgCache::?= =?UTF-8?q?PkgIterator::CandVersion()=20const=E2=80=99:=20pkgcache.cc:301:?= =?UTF-8?q?51:=20error:=20cannot=20call=20constructor=20=E2=80=98pkgPolicy?= =?UTF-8?q?::pkgPolicy=E2=80=99=20directly=20pkgcache.cc:301:51:=20note:?= =?UTF-8?q?=20for=20a=20function-style=20cast,=20remove=20the=20redundant?= =?UTF-8?q?=20=E2=80=98::pkgPolicy=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apt-pkg/pkgcache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3