diff options
author | Julian Andres Klode <jak@debian.org> | 2016-01-07 20:01:16 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-01-07 20:01:16 +0100 |
commit | 8cfd5495e30533e2ab708c8dc875f1c6f29650fd (patch) | |
tree | 71b885e433154124ebeb98f2ec405c067a15d1cd /apt-pkg/contrib/string_view.h | |
parent | eff0c22e59e65b6b63e854ff41eb091278e05714 (diff) |
StringView::rfind(): Call rfind() instead of find() on subst
Thanks: Niels Thykier for reporting on IRC
Gbp-Dch: ignore
Diffstat (limited to 'apt-pkg/contrib/string_view.h')
-rw-r--r-- | apt-pkg/contrib/string_view.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/string_view.h b/apt-pkg/contrib/string_view.h index b4ce0431c..16f324597 100644 --- a/apt-pkg/contrib/string_view.h +++ b/apt-pkg/contrib/string_view.h @@ -57,7 +57,7 @@ public: size_t rfind(int c, size_t pos=0) const { if (pos != 0) - return substr(pos).find(c); + return substr(pos).rfind(c); const char *found = static_cast<const char*>(memrchr(data_, c, size_)); |