clang-tidy: apply performance-faster-string-find fixes

This commit is contained in:
Daniel Pfeifer
2016-12-10 14:49:22 +01:00
committed by Brad King
parent 7c9db8f813
commit cac529dd49
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -342,7 +342,7 @@ bool cmStringCommand::RegexReplace(std::vector<std::string> const& args)
std::vector<RegexReplacement> replacement;
std::string::size_type l = 0;
while (l < replace.length()) {
std::string::size_type r = replace.find("\\", l);
std::string::size_type r = replace.find('\\', l);
if (r == std::string::npos) {
r = replace.length();
replacement.push_back(replace.substr(l, r - l));