summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcachegen.h
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2024-11-14 18:37:57 +0100
committerнаб <nabijaczleweli@nabijaczleweli.xyz>2024-11-14 18:41:26 +0100
commit323fcee3730fc8e3edd555f458bf260382f6d3ef (patch)
tree06b1aab8e81f37858f3718a30f282eedb9692d08 /apt-pkg/pkgcachegen.h
parent784c7e84b58e784cf137f15d411d29fb4933a8e5 (diff)
std::string_view const & -> std::string_view
Fixes: 2c03eed649068c8838d971ceeb1a09603dcc8e9c
Diffstat (limited to 'apt-pkg/pkgcachegen.h')
-rw-r--r--apt-pkg/pkgcachegen.h22
1 files changed, 11 insertions, 11 deletions
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<pkgCache::Version> NewVersion(pkgCache::VerIterator &Ver, std::string_view const &VerStr,
+ map_pointer<pkgCache::Version> NewVersion(pkgCache::VerIterator &Ver, std::string_view VerStr,
map_pointer<pkgCache::Package> const ParentPkg, uint32_t Hash,
map_pointer<pkgCache::Version> const Next);
map_pointer<pkgCache::Description> 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;};