Use more efficient overload with character

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2021-04-08 12:29:36 +02:00
parent f185589f47
commit 0edef6eda4

View file

@ -466,7 +466,7 @@ void Rules::parseRuleSettings (
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
unsigned int Rules::getIndentation (const std::string& line) unsigned int Rules::getIndentation (const std::string& line)
{ {
auto indent = line.find_first_not_of (" "); auto indent = line.find_first_not_of (' ');
if (indent == std::string::npos) if (indent == std::string::npos)
indent = 0; indent = 0;