summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt-pkg/tagfile.h4
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;