clang-tidy: run through performance checks

Found with performance*

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-05-17 02:17:22 -07:00
committed by Luis Díaz Más
parent b8712188bb
commit f9d394adf0
13 changed files with 29 additions and 36 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ namespace Exiv2 {
return b;
}
static bool matchi(const std::string key,const char* substr)
static bool matchi(const std::string& key, const char* substr)
{
return toLowerCase(key).find(substr) != std::string::npos;
}