summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmParseBlanketJSCoverage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CTest/cmParseBlanketJSCoverage.cxx')
-rw-r--r--Source/CTest/cmParseBlanketJSCoverage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmParseBlanketJSCoverage.cxx b/Source/CTest/cmParseBlanketJSCoverage.cxx
index f7f3e41..83a7b75 100644
--- a/Source/CTest/cmParseBlanketJSCoverage.cxx
+++ b/Source/CTest/cmParseBlanketJSCoverage.cxx
@@ -35,7 +35,7 @@ public:
line.substr(begIndex + 3, endIndex - (begIndex + 4));
return foundFileName;
}
- return line.substr(begIndex, std::string::npos);
+ return line.substr(begIndex);
}
bool ParseFile(std::string const& file)
{
@@ -78,7 +78,7 @@ public:
* only the value of the line coverage is captured
*/
std::string result = getValue(line, 1);
- result = result.substr(2, std::string::npos);
+ result = result.substr(2);
if (result == "\"\"") {
// Empty quotation marks indicate that the
// line is not executable