From 4a404fc7e59d845d04b4e8f9cd39d7aea74fc423 Mon Sep 17 00:00:00 2001 From: наб Date: Thu, 14 Nov 2024 17:17:50 +0100 Subject: apt-pkg/tagfile.h: prepare for APT::StringView -> std::string_view --- apt-pkg/tagfile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt-pkg/tagfile.h') diff --git a/apt-pkg/tagfile.h b/apt-pkg/tagfile.h index 60fca09c1..cd1806eb4 100644 --- a/apt-pkg/tagfile.h +++ b/apt-pkg/tagfile.h @@ -67,8 +67,8 @@ class APT_PUBLIC pkgTagSection inline bool operator !=(const pkgTagSection &rhs) {return Section != rhs.Section;}; // TODO: Remove internally - std::string FindS(APT::StringView sv) const { return Find(sv).to_string(); } - std::string FindRawS(APT::StringView sv) const { return FindRaw(sv).to_string(); }; + std::string FindS(APT::StringView sv) const { return std::string{Find(sv)}; } + std::string FindRawS(APT::StringView sv) const { return std::string{FindRaw(sv)}; }; // Functions for lookup with a perfect hash function enum class Key; -- cgit v1.2.3-70-g09d2