diff --git a/src/CLI2.cpp b/src/CLI2.cpp index c28138359..3f8e3853c 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -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 diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 31bd263f1..ad5e42eca 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -1671,7 +1671,7 @@ bool Lexer::decomposeSubstitution ( if (readWord (text, "/", cursor, parsed_to)) { std::string parsed_flags = text.substr (cursor); - if (parsed_flags.find ('/') == std::string::npos) + if (parsed_flags.find ("/") == std::string::npos) { dequote (parsed_from, "/"); dequote (parsed_to, "/"); @@ -1700,7 +1700,7 @@ bool Lexer::decomposePattern ( ignored.length ()) { auto parsed_flags = text.substr (cursor); - if (parsed_flags.find ('/') == std::string::npos) + if (parsed_flags.find ("/") == std::string::npos) { flags = parsed_flags; pattern = text.substr (1, cursor - 2 - flags.length ()); diff --git a/src/ViewTask.cpp b/src/ViewTask.cpp index 68bd253a1..7949fe5a8 100644 --- a/src/ViewTask.cpp +++ b/src/ViewTask.cpp @@ -279,7 +279,7 @@ std::string ViewTask::render (std::vector & data, std::vector & 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 & data, std::vector & 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.