From 323fcee3730fc8e3edd555f458bf260382f6d3ef Mon Sep 17 00:00:00 2001 From: наб Date: Thu, 14 Nov 2024 18:37:57 +0100 Subject: std::string_view const & -> std::string_view Fixes: 2c03eed649068c8838d971ceeb1a09603dcc8e9c --- apt-pkg/pkgcachegen.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'apt-pkg/pkgcachegen.h') diff --git a/apt-pkg/pkgcachegen.h b/apt-pkg/pkgcachegen.h index 3c0295220..efcaef80d 100644 --- a/apt-pkg/pkgcachegen.h +++ b/apt-pkg/pkgcachegen.h @@ -1,18 +1,18 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ /* ###################################################################### - + Package Cache Generator - Generator for the cache structure. - - This builds the cache structure from the abstract package list parser. + + This builds the cache structure from the abstract package list parser. Each archive source has it's own list parser that is instantiated by - the caller to provide data for the generator. - + the caller to provide data for the generator. + Parts of the cache are created by this generator class while other parts are created by the list parser. The list parser is responsible for creating version, depends and provides structures, and some of their contents - + ##################################################################### */ /*}}}*/ #ifndef PKGLIB_PKGCACHEGEN_H @@ -116,7 +116,7 @@ class APT_HIDDEN pkgCacheGenerator /*{{{*/ bool NewGroup(pkgCache::GrpIterator &Grp, std::string_view Name); bool NewPackage(pkgCache::PkgIterator &Pkg, std::string_view Name, std::string_view Arch); - map_pointer NewVersion(pkgCache::VerIterator &Ver, std::string_view const &VerStr, + map_pointer NewVersion(pkgCache::VerIterator &Ver, std::string_view VerStr, map_pointer const ParentPkg, uint32_t Hash, map_pointer const Next); map_pointer NewDescription(pkgCache::DescIterator &Desc,const std::string &Lang, std::string_view md5sum,map_stringitem_t const idxmd5str); @@ -162,7 +162,7 @@ class APT_HIDDEN pkgCacheGenerator /*{{{*/ APT_HIDDEN bool MergeListGroup(ListParser &List, std::string const &GrpName); APT_HIDDEN bool MergeListPackage(ListParser &List, pkgCache::PkgIterator &Pkg); APT_HIDDEN bool MergeListVersion(ListParser &List, pkgCache::PkgIterator &Pkg, - std::string_view const &Version, pkgCache::VerIterator* &OutVer); + std::string_view Version, pkgCache::VerIterator* &OutVer); APT_HIDDEN bool AddImplicitDepends(pkgCache::GrpIterator &G, pkgCache::PkgIterator &P, pkgCache::VerIterator &V); @@ -200,7 +200,7 @@ class APT_HIDDEN pkgCacheListParser bool NewProvidesAllArch(pkgCache::VerIterator &Ver, std::string_view Package, std::string_view Version, uint8_t const Flags); public: - + // These all operate against the current section virtual std::string Package() = 0; virtual bool ArchitectureAll() = 0; @@ -220,9 +220,9 @@ class APT_HIDDEN pkgCacheListParser pkgCache::VerIterator &Ver) = 0; virtual map_filesize_t Offset() = 0; virtual map_filesize_t Size() = 0; - + virtual bool Step() = 0; - + virtual bool CollectFileProvides(pkgCache &/*Cache*/, pkgCache::VerIterator &/*Ver*/) {return true;}; -- cgit v1.2.3-70-g09d2