Remove second arg: npos in substr usages

This commit is contained in:
Pavel Solodovnikov
2017-05-30 22:46:05 +03:00
committed by Brad King
parent 8b6f439ef2
commit db2d46e2dd
11 changed files with 15 additions and 17 deletions
+1 -1
View File
@@ -5149,7 +5149,7 @@ std::string cmGeneratorTarget::CheckCMP0004(std::string const& item) const
std::string lib = item;
std::string::size_type pos = lib.find_first_not_of(" \t\r\n");
if (pos != std::string::npos) {
lib = lib.substr(pos, std::string::npos);
lib = lib.substr(pos);
}
pos = lib.find_last_not_of(" \t\r\n");
if (pos != std::string::npos) {