[clang-tidy] convert several loops to const auto&
Found with performance-for-range-copy Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@ InputPlugin::SupportsUri(const char *uri) const noexcept
|
||||
if (StringStartsWithIgnoreCase(uri, *i))
|
||||
return true;
|
||||
} else {
|
||||
for (auto schema : protocols()) {
|
||||
for (const auto& schema : protocols()) {
|
||||
if (StringStartsWithIgnoreCase(uri, schema.c_str())){
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user