summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2024-11-12 17:59:18 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2025-02-14 19:45:12 +0100
commit793c9b1f3059c35b66c19f62fa39b6607809fea0 (patch)
treefe23d92be8e2f0144e5f4c8d267bd7b62e1023c1 /apt-pkg/deb
parent6de55404ca8ce296ccf14880c6115b6d8eb4e0b9 (diff)
APT::StringView -> std::string_view [textonly]
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r--apt-pkg/deb/deblistparser.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc
index db3478f53..375b5dbd6 100644
--- a/apt-pkg/deb/deblistparser.cc
+++ b/apt-pkg/deb/deblistparser.cc
@@ -120,9 +120,9 @@ unsigned char debListParser::ParseMultiArch(bool const showErrors) /*{{{*/
{
unsigned char MA;
auto const MultiArch = Section.Find(pkgTagSection::Key::Multi_Arch);
- if (MultiArch.empty() == true || MultiArch == "no")
+ if (MultiArch.empty() == true || MultiArch == "no"sv)
MA = pkgCache::Version::No;
- else if (MultiArch == "same") {
+ else if (MultiArch == "same"sv) {
if (ArchitectureAll() == true)
{
if (showErrors == true)
@@ -133,9 +133,9 @@ unsigned char debListParser::ParseMultiArch(bool const showErrors) /*{{{*/
else
MA = pkgCache::Version::Same;
}
- else if (MultiArch == "foreign")
+ else if (MultiArch == "foreign"sv)
MA = pkgCache::Version::Foreign;
- else if (MultiArch == "allowed")
+ else if (MultiArch == "allowed"sv)
MA = pkgCache::Version::Allowed;
else
{