Revert "[clang-tidy] Use '' for single characters"
This reverts commit e3ceda9ce1.
This commit is contained in:
@@ -231,7 +231,7 @@ bool CLI2::getOverride (int argc, const char** argv, std::string& home, File& rc
|
||||
if (value == nullptr)
|
||||
return false;
|
||||
rc = File (value);
|
||||
if (rc._data.rfind ('/') != std::string::npos)
|
||||
if (rc._data.rfind ("/") != std::string::npos)
|
||||
home = rc.parent ();
|
||||
else
|
||||
home = ".";
|
||||
@@ -1483,7 +1483,7 @@ void CLI2::findIDs ()
|
||||
for (auto& element : elements)
|
||||
{
|
||||
changes = true;
|
||||
auto hyphen = element.find ('-');
|
||||
auto hyphen = element.find ("-");
|
||||
if (hyphen != std::string::npos)
|
||||
_id_ranges.emplace_back(element.substr (0, hyphen), element.substr (hyphen + 1));
|
||||
else
|
||||
@@ -1538,7 +1538,7 @@ void CLI2::findIDs ()
|
||||
for (const auto& element : elements)
|
||||
{
|
||||
changes = true;
|
||||
auto hyphen = element.find ('-');
|
||||
auto hyphen = element.find ("-");
|
||||
if (hyphen != std::string::npos)
|
||||
_id_ranges.emplace_back(element.substr (0, hyphen), element.substr (hyphen + 1));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user