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/cmGlobalUnixMakefileGenerator3.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/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator3.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index 15ddeff..be40126 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -230,7 +230,7 @@ void cmGlobalUnixMakefileGenerator3::WriteMainMakefile2() // The all and preinstall rules might never have any dependencies // added to them. - if (this->EmptyRuleHackDepends != "") { + if (!this->EmptyRuleHackDepends.empty()) { depends.push_back(this->EmptyRuleHackDepends); } @@ -438,7 +438,7 @@ void cmGlobalUnixMakefileGenerator3::WriteDirectoryRule2( // Work-around for makes that drop rules that have no dependencies // or commands. - if (depends.empty() && this->EmptyRuleHackDepends != "") { + if (depends.empty() && !this->EmptyRuleHackDepends.empty()) { depends.push_back(this->EmptyRuleHackDepends); } |