clang-tidy: use '' for single character find

Found with performance-faster-string-find

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-02-28 18:27:20 -08:00
committed by Tomas Babej
parent b1e70fd780
commit 8ffb85b327
4 changed files with 7 additions and 7 deletions

View File

@@ -500,7 +500,7 @@ int CmdInfo::execute (std::string& output)
if (end != std::string::npos)
{
auto uda = var.first.substr (12, end - 12);
auto dot = uda.find (".");
auto dot = uda.find ('.');
if (dot == std::string::npos)
{
// urgency.uda.<name>.coefficient