From 384cfa1fe9dfd30b35d6f8b0ae87be643ab75d06 Mon Sep 17 00:00:00 2001 From: наб Date: Thu, 23 Jan 2025 20:37:35 +0100 Subject: Return string_view from Apt::String::Strip(). Take string_view in VectorizeString(), StringSplit(), SubstVar() --- apt-pkg/deb/dpkgpm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-pkg/deb') diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index a6be563ca..cc695ceb9 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -600,7 +600,7 @@ void pkgDPkgPM::ProcessDpkgStatusLine(char *line) // build the (prefix, pkgname, action) tuple, position of this // is different for "processing" or "status" messages - std::string prefix = APT::String::Strip(list[0]); + auto prefix = APT::String::Strip(list[0]); std::string pkgname; std::string action; -- cgit v1.2.3-70-g09d2