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

View File

@@ -2372,8 +2372,7 @@ bool cmSystemTools::ChangeRPath(std::string const& file,
// not being changed.
rp[rp_count].Value = se[i]->Value.substr(0, prefix_len);
rp[rp_count].Value += newRPath;
rp[rp_count].Value +=
se[i]->Value.substr(pos + oldRPath.length(), std::string::npos);
rp[rp_count].Value += se[i]->Value.substr(pos + oldRPath.length());
if (!rp[rp_count].Value.empty()) {
remove_rpath = false;