summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.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/cmCTest.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/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 7025747..e260556 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -673,8 +673,7 @@ bool cmCTest::UpdateCTestConfiguration()
continue;
}
std::string key = line.substr(0, cpos);
- std::string value =
- cmCTest::CleanString(line.substr(cpos + 1, std::string::npos));
+ std::string value = cmCTest::CleanString(line.substr(cpos + 1));
this->CTestConfiguration[key] = value;
}
fin.close();
@@ -2518,7 +2517,7 @@ void cmCTest::AddCTestConfigurationOverwrite(const std::string& overStr)
return;
}
std::string key = overStr.substr(0, epos);
- std::string value = overStr.substr(epos + 1, std::string::npos);
+ std::string value = overStr.substr(epos + 1);
this->CTestConfigurationOverwrites[key] = value;
}