diff options
| author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-12 17:59:21 +0100 |
|---|---|---|
| committer | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-12 20:36:16 +0100 |
| commit | 982998a061461a503352d85b1d0a76a99c8480cd (patch) | |
| tree | eeecb3875d06ce7c38bfa07660421095c7dbd775 /apt-pkg/edsp | |
| parent | e1cb4e100320ceb5c81583943f57bcd007a95a7d (diff) | |
apt-pkg/edsp/edsplistparser.cc: APT::StringView -> std::string_view
Diffstat (limited to 'apt-pkg/edsp')
| -rw-r--r-- | apt-pkg/edsp/edsplistparser.cc | 7 | ||||
| -rw-r--r-- | apt-pkg/edsp/edsplistparser.h | 5 |
2 files changed, 4 insertions, 8 deletions
diff --git a/apt-pkg/edsp/edsplistparser.cc b/apt-pkg/edsp/edsplistparser.cc index 183ace654..d3e761be4 100644 --- a/apt-pkg/edsp/edsplistparser.cc +++ b/apt-pkg/edsp/edsplistparser.cc @@ -17,7 +17,6 @@ #include <apt-pkg/fileutl.h> #include <apt-pkg/pkgcache.h> #include <apt-pkg/pkgsystem.h> -#include <apt-pkg/string_view.h> #include <apt-pkg/strutl.h> #include <apt-pkg/tagfile-keys.h> #include <apt-pkg/tagfile.h> @@ -48,7 +47,7 @@ bool edspLikeListParser::NewVersion(pkgCache::VerIterator &Ver) return false; // Patch up the source version, it is stored in the Source-Version field in EDSP. - if (APT::StringView version = Section.Find(pkgTagSection::Key::Source_Version); not version.empty()) + if (std::string_view version = Section.Find(pkgTagSection::Key::Source_Version); not version.empty()) { if (version != Ver.VerStr()) { @@ -67,9 +66,9 @@ std::vector<std::string> edspLikeListParser::AvailableDescriptionLanguages() { return {}; } -APT::StringView edspLikeListParser::Description_md5() +std::string_view edspLikeListParser::Description_md5() { - return APT::StringView(); + return {}; } /*}}}*/ // ListParser::VersionHash - Compute a unique hash for this version /*{{{*/ diff --git a/apt-pkg/edsp/edsplistparser.h b/apt-pkg/edsp/edsplistparser.h index 41bfd1f79..3f0f3e64c 100644 --- a/apt-pkg/edsp/edsplistparser.h +++ b/apt-pkg/edsp/edsplistparser.h @@ -18,15 +18,12 @@ #include <string> -namespace APT { - class StringView; -} class APT_HIDDEN edspLikeListParser : public debListParser { public: virtual bool NewVersion(pkgCache::VerIterator &Ver) APT_OVERRIDE; virtual std::vector<std::string> AvailableDescriptionLanguages() APT_OVERRIDE; - virtual APT::StringView Description_md5() APT_OVERRIDE; + virtual std::string_view Description_md5() APT_OVERRIDE; virtual uint32_t VersionHash() APT_OVERRIDE; explicit edspLikeListParser(FileFd *File); |
