summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2025-01-23 20:37:35 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2025-02-14 19:45:12 +0100
commit384cfa1fe9dfd30b35d6f8b0ae87be643ab75d06 (patch)
treecbda3ac7c585141a4900d41a7162be78f9a61150 /apt-pkg/deb/dpkgpm.cc
parent7f4c339d6fe19ff7e26144e373a6e5c73344539f (diff)
Return string_view from Apt::String::Strip(). Take string_view in VectorizeString(), StringSplit(), SubstVar()
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r--apt-pkg/deb/dpkgpm.cc2
1 files changed, 1 insertions, 1 deletions
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;