summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmParseCoberturaCoverage.cxx
diff options
context:
space:
mode:
authorPavel Solodovnikov <hellyeahdominate@gmail.com>2017-09-15 22:42:59 (GMT)
committerPavel Solodovnikov <hellyeahdominate@gmail.com>2017-09-21 08:23:19 (GMT)
commit37d9387be37b5ad51b518d5df467b64e88f73350 (patch)
tree91d6c8ff19c59b296bef0166b8a4da6ff6180190 /Source/CTest/cmParseCoberturaCoverage.cxx
parent1cf94375174e7b939148a3ec7e3ae004d511719e (diff)
downloadCMake-37d9387be37b5ad51b518d5df467b64e88f73350.zip
CMake-37d9387be37b5ad51b518d5df467b64e88f73350.tar.gz
CMake-37d9387be37b5ad51b518d5df467b64e88f73350.tar.bz2
Replace empty-string comparisons with checking against `empty()`.
Diffstat (limited to 'Source/CTest/cmParseCoberturaCoverage.cxx')
-rw-r--r--Source/CTest/cmParseCoberturaCoverage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmParseCoberturaCoverage.cxx b/Source/CTest/cmParseCoberturaCoverage.cxx
index 3e85339..61ce7d4 100644
--- a/Source/CTest/cmParseCoberturaCoverage.cxx
+++ b/Source/CTest/cmParseCoberturaCoverage.cxx
@@ -78,7 +78,7 @@ protected:
}
}
- if (this->CurFileName == "") {
+ if (this->CurFileName.empty()) {
// Check if this is a path that is relative to our source or
// binary directories.
for (std::string const& filePath : FilePaths) {
@@ -91,7 +91,7 @@ protected:
}
cmsys::ifstream fin(this->CurFileName.c_str());
- if (this->CurFileName == "" || !fin) {
+ if (this->CurFileName.empty() || !fin) {
this->CurFileName =
this->Coverage.BinaryDir + "/" + atts[tagCount + 1];
fin.open(this->CurFileName.c_str());