mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
tidy: add clang-tidy modernize-use-starts-ends-with check
This commit is contained in:
parent
2756797eca
commit
fc7b507e9a
4 changed files with 4 additions and 3 deletions
|
|
@ -315,7 +315,7 @@ static void http_request_cb(struct evhttp_request* req, void* arg)
|
|||
if (i->exactMatch)
|
||||
match = (strURI == i->prefix);
|
||||
else
|
||||
match = (strURI.substr(0, i->prefix.size()) == i->prefix);
|
||||
match = strURI.starts_with(i->prefix);
|
||||
if (match) {
|
||||
path = strURI.substr(i->prefix.size());
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue