diff options
author | Pavel Solodovnikov <hellyeahdominate@gmail.com> | 2017-09-15 22:42:59 (GMT) |
---|---|---|
committer | Pavel Solodovnikov <hellyeahdominate@gmail.com> | 2017-09-21 08:23:19 (GMT) |
commit | 37d9387be37b5ad51b518d5df467b64e88f73350 (patch) | |
tree | 91d6c8ff19c59b296bef0166b8a4da6ff6180190 /Source/cmCTest.cxx | |
parent | 1cf94375174e7b939148a3ec7e3ae004d511719e (diff) | |
download | CMake-37d9387be37b5ad51b518d5df467b64e88f73350.zip CMake-37d9387be37b5ad51b518d5df467b64e88f73350.tar.gz CMake-37d9387be37b5ad51b518d5df467b64e88f73350.tar.bz2 |
Replace empty-string comparisons with checking against `empty()`.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index d60ce55..ba50986 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -147,7 +147,7 @@ std::string cmCTest::CurrentTime() std::string cmCTest::GetCostDataFile() { std::string fname = this->GetCTestConfiguration("CostDataFile"); - if (fname == "") { + if (fname.empty()) { fname = this->GetBinaryDir() + "/Testing/Temporary/CTestCostData.txt"; } return fname; @@ -1235,7 +1235,7 @@ std::string cmCTest::SafeBuildIdField(const std::string& value) { std::string safevalue(value); - if (safevalue != "") { + if (!safevalue.empty()) { // Disallow non-filename and non-space whitespace characters. // If they occur, replace them with "" // @@ -1254,7 +1254,7 @@ std::string cmCTest::SafeBuildIdField(const std::string& value) } } - if (safevalue == "") { + if (safevalue.empty()) { safevalue = "(empty)"; } |