diff options
author | Pavel Solodovnikov <hellyeahdominate@gmail.com> | 2017-05-30 19:46:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-06-01 18:19:52 (GMT) |
commit | db2d46e2ddbdf1c5d942e70b341e085f84e79c13 (patch) | |
tree | 37d613c818fcf588664ea3ac6cacc83d9966b176 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 8b6f439ef20cf882b4f3deba48f34a01a98963d9 (diff) | |
download | CMake-db2d46e2ddbdf1c5d942e70b341e085f84e79c13.zip CMake-db2d46e2ddbdf1c5d942e70b341e085f84e79c13.tar.gz CMake-db2d46e2ddbdf1c5d942e70b341e085f84e79c13.tar.bz2 |
Remove second arg: npos in substr usages
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 146cfd0..9b9d22c 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -79,7 +79,7 @@ static std::string cmSplitExtension(std::string const& in, std::string& base) std::string::size_type dot_pos = in.rfind('.'); if (dot_pos != std::string::npos) { // Remove the extension first in case &base == &in. - ext = in.substr(dot_pos, std::string::npos); + ext = in.substr(dot_pos); base = in.substr(0, dot_pos); } else { base = in; |