diff options
| author | Julian Andres Klode <jak@debian.org> | 2026-04-08 10:26:06 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2026-04-08 10:26:06 +0000 |
| commit | a6873075dcac5115706e001bc9640c8da0805e35 (patch) | |
| tree | e5d3d569e51d24207eb0228615f5eedd37e08296 /apt-pkg/acquire-worker.cc | |
| parent | 04dcfd52355ca06143a8aaca4afd718a22fb0ded (diff) | |
| parent | af5b9453a1908021cf75c348522c1a12eeb0dee4 (diff) | |
Merge branch 'str-to-chars' into 'main'
apt: funcs called with a string literal consisting of a single character
See merge request apt-team/apt!563
Diffstat (limited to 'apt-pkg/acquire-worker.cc')
| -rw-r--r-- | apt-pkg/acquire-worker.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc index 55897945c..d712f3e30 100644 --- a/apt-pkg/acquire-worker.cc +++ b/apt-pkg/acquire-worker.cc @@ -231,7 +231,7 @@ static void APT_NONNULL(3) ChangeSiteIsMirrorChange(std::string const &NewURI, p if (URI::SiteOnly(NewURI) == URI::SiteOnly(desc.URI)) return; - auto const firstSpace = desc.Description.find(" "); + auto const firstSpace = desc.Description.find(' '); if (firstSpace != std::string::npos) { std::string const OldSite = desc.Description.substr(0, firstSpace); @@ -277,8 +277,8 @@ bool pkgAcquire::Worker::RunMessages() for (pkgAcquire::Queue::QItem::owner_iterator O = Itm->Owners.begin(); O != Itm->Owners.end(); ++O) (*O)->UsedMirror = UsedMirror; - if (Itm->Description.find(" ") != string::npos) - Itm->Description.replace(0, Itm->Description.find(" "), UsedMirror); + if (Itm->Description.find(' ') != string::npos) + Itm->Description.replace(0, Itm->Description.find(' '), UsedMirror); } } |
