From 472376be6818b5ea43250abcbecfcab53b4a729a Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 1 Apr 2022 13:45:09 +0200 Subject: Use pkgTagSection::Key in more places in src:apt The speed critical paths were converted earlier, but the remaining could benefit a tiny bit from this as well especially as we have the facility now available and can therefore brush up the code in various places in the process as well. Also takes the time to add the hidden Exists method advertised in the headers, but previously not implemented. --- apt-pkg/tagfile.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apt-pkg/tagfile.cc') diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc index ebad1a4c5..047f88986 100644 --- a/apt-pkg/tagfile.cc +++ b/apt-pkg/tagfile.cc @@ -625,6 +625,11 @@ bool pkgTagSection::Exists(StringView Tag) const { unsigned int tmp; return Find(Tag, tmp); +} +bool pkgTagSection::Exists(Key key) const +{ + unsigned int tmp; + return Find(key, tmp); } /*}}}*/ // TagSection::Find - Locate a tag /*{{{*/ -- cgit v1.2.3-70-g09d2