From 793c9b1f3059c35b66c19f62fa39b6607809fea0 Mon Sep 17 00:00:00 2001 From: наб Date: Tue, 12 Nov 2024 17:59:18 +0100 Subject: APT::StringView -> std::string_view [textonly] --- apt-pkg/deb/deblistparser.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apt-pkg/deb') 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 { -- cgit v1.2.3-70-g09d2