summaryrefslogtreecommitdiff
path: root/apt-pkg/policy.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2024-12-26 19:41:53 +0000
committerDavid Kalnischkies <david@kalnischkies.de>2025-01-05 22:16:08 +0000
commitf73593a4034d9eec0ec4466b8e173d4a4daece1f (patch)
tree9cab47b9426e3e9fff80682b86f8449e3d9c9b53 /apt-pkg/policy.h
parent427f95cedadb5323d35e5174d4592cbdd9c602f4 (diff)
Drop usage of macro APT_OVERRIDE for simple override
We were rather inconsistent in using it and as our public headers contain deduction guides (a c++17 feature) it seems silly to try to hide a c++11 feature in a macro, so lets stop this charade and drop the macro and while we are changing all these lines lets apply [[nodiscard]] (another c++17 feature) and other suggestions from clang-tidy and formatting for a little more consistency.
Diffstat (limited to 'apt-pkg/policy.h')
-rw-r--r--apt-pkg/policy.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/policy.h b/apt-pkg/policy.h
index 589cebcde..3a377fe25 100644
--- a/apt-pkg/policy.h
+++ b/apt-pkg/policy.h
@@ -72,9 +72,9 @@ class APT_PUBLIC pkgPolicy : public pkgDepCache::Policy
std::string Data,signed short Priority);
// Things for the cache interface.
- virtual pkgCache::VerIterator GetCandidateVer(pkgCache::PkgIterator const &Pkg) APT_OVERRIDE;
- virtual signed short GetPriority(pkgCache::VerIterator const &Ver, bool ConsiderFiles = true) APT_OVERRIDE;
- virtual signed short GetPriority(pkgCache::PkgFileIterator const &File) APT_OVERRIDE;
+ pkgCache::VerIterator GetCandidateVer(pkgCache::PkgIterator const &Pkg) override;
+ signed short GetPriority(pkgCache::VerIterator const &Ver, bool ConsiderFiles = true) override;
+ signed short GetPriority(pkgCache::PkgFileIterator const &File) override;
void SetPriority(pkgCache::VerIterator const &Ver, signed short Priority);
void SetPriority(pkgCache::PkgFileIterator const &File, signed short Priority);