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

@ -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.