diff options
| author | David Kalnischkies <david@kalnischkies.de> | 2022-03-28 18:05:44 +0200 |
|---|---|---|
| committer | David Kalnischkies <david@kalnischkies.de> | 2022-04-01 14:16:19 +0200 |
| commit | 0b156cd1711a5e27643b941f5a321a62e5a9b628 (patch) | |
| tree | 53b26d4b87c6a41c6e65d419b85676c0fe9c15de /apt-pkg/edsp.cc | |
| parent | ba95ef53cf09b7f45c2ef9a39c0c158b7d79a88e (diff) | |
Avoid .c_str() on strings feed into pkgTagSection::FindS
FindS has a APT::StringView based API nowadays, so we can avoid these
explicit calls also allowing us to avoid the std::string in input or
output entirely or at least move it a few branches down.
Diffstat (limited to 'apt-pkg/edsp.cc')
| -rw-r--r-- | apt-pkg/edsp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc index b7c0d28d2..6493a4595 100644 --- a/apt-pkg/edsp.cc +++ b/apt-pkg/edsp.cc @@ -453,7 +453,7 @@ bool EDSP::ReadResponse(int const input, pkgDepCache &Cache, OpProgress *Progres continue; } - decltype(VersionCount) const id = section.FindULL(type.c_str(), VersionCount); + decltype(VersionCount) const id = section.FindULL(type, VersionCount); if (id == VersionCount) { _error->Warning("Unable to parse %s request with id value '%s'!", type.c_str(), section.FindS(type.c_str()).c_str()); continue; |
