mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-23 07:28:51 -06:00
Remove second arg: npos in substr usages
This commit is contained in:
committed by
Brad King
parent
8b6f439ef2
commit
db2d46e2dd
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user