[clang-tidy] Use '' for single characters

Found with performance-faster-string-find

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2019-09-27 20:30:15 -07:00 committed by Paul Beckingham
parent 426e067f43
commit e3ceda9ce1
3 changed files with 7 additions and 7 deletions

View file

@ -279,7 +279,7 @@ std::string ViewTask::render (std::vector <Task>& data, std::vector <int>& seque
out += extra;
// Trim right.
out.erase (out.find_last_not_of (" ") + 1);
out.erase (out.find_last_not_of (' ') + 1);
out += "\n";
// Stop if the line limit is exceeded.
@ -365,7 +365,7 @@ std::string ViewTask::render (std::vector <Task>& data, std::vector <int>& seque
out += (odd ? extra_odd : extra_even);
// Trim right.
out.erase (out.find_last_not_of (" ") + 1);
out.erase (out.find_last_not_of (' ') + 1);
out += "\n";
// Stop if the line limit is exceeded.