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/cmLoadCommandCommand.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/cmLoadCommandCommand.cxx')
-rw-r--r-- | Source/cmLoadCommandCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx index 2850032..6bfac17 100644 --- a/Source/cmLoadCommandCommand.cxx +++ b/Source/cmLoadCommandCommand.cxx @@ -197,7 +197,7 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& args, // Try to find the program. std::string fullPath = cmSystemTools::FindFile(moduleName, path); - if (fullPath == "") { + if (fullPath.empty()) { std::ostringstream e; e << "Attempt to load command failed from file \"" << moduleName << "\""; this->SetError(e.str()); |