diff options
| author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-14 17:17:50 +0100 |
|---|---|---|
| committer | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-14 18:17:06 +0100 |
| commit | 4a404fc7e59d845d04b4e8f9cd39d7aea74fc423 (patch) | |
| tree | 0f950ce9bc271200027b53b329590cd06cf79c7b | |
| parent | 784c7e84b58e784cf137f15d411d29fb4933a8e5 (diff) | |
apt-pkg/tagfile.h: prepare for APT::StringView -> std::string_view
| -rw-r--r-- | apt-pkg/tagfile.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
