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/deb | |
| 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/deb')
| -rw-r--r-- | apt-pkg/deb/debrecords.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/deb/debrecords.cc b/apt-pkg/deb/debrecords.cc index 22ac219ba..8fb17ae0b 100644 --- a/apt-pkg/deb/debrecords.cc +++ b/apt-pkg/deb/debrecords.cc @@ -129,7 +129,7 @@ string debRecordParserBase::LongDesc(std::string const &lang) l != lang.end(); ++l) { std::string const tagname = "Description-" + *l; - orig = Section.FindS(tagname.c_str()); + orig = Section.FindS(tagname); if (orig.empty() == false) break; else if (*l == "en") |
