summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorPavel Solodovnikov <hellyeahdominate@gmail.com>2017-05-30 19:46:05 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-01 18:19:52 (GMT)
commitdb2d46e2ddbdf1c5d942e70b341e085f84e79c13 (patch)
tree37d613c818fcf588664ea3ac6cacc83d9966b176 /Source/cmSystemTools.cxx
parent8b6f439ef20cf882b4f3deba48f34a01a98963d9 (diff)
downloadCMake-db2d46e2ddbdf1c5d942e70b341e085f84e79c13.zip
CMake-db2d46e2ddbdf1c5d942e70b341e085f84e79c13.tar.gz
CMake-db2d46e2ddbdf1c5d942e70b341e085f84e79c13.tar.bz2
Remove second arg: npos in substr usages
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 54ec6b0..f7192e0 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -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;