From 749eb4cf0416b1eb7a950bbfce2937f04ab0b6ab Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 2 Jan 2010 17:19:07 +0100 Subject: [PATCH] =?utf8?q?Fix=20the=20following=20gcc-4.5=20buildfailure?= =?utf8?q?=20in=20pkgcache.cc=20by=20following=20the=20suggestion:=20pkgca?= =?utf8?q?che.cc:=20In=20member=20function=20=E2=80=98const=20char*=20pkgC?= =?utf8?q?ache::PkgIterator::CandVersion()=20const=E2=80=99:=20pkgcache.cc?= =?utf8?q?:301:51:=20error:=20cannot=20call=20constructor=20=E2=80=98pkgPo?= =?utf8?q?licy::pkgPolicy=E2=80=99=20directly=20pkgcache.cc:301:51:=20note?= =?utf8?q?:=20for=20a=20function-style=20cast,=20remove=20the=20redundant?= =?utf8?q?=20=E2=80=98::pkgPolicy=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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; -- 2.47.2