diff options
author | Brad King <brad.king@kitware.com> | 2016-09-16 14:21:39 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-09-16 14:21:39 (GMT) |
commit | 60ebd0acf843bbe87f94b39d6807a072532cdb07 (patch) | |
tree | ae2825e55031a78ea26985020671e689ac6940ca /Source/cmFindPackageCommand.cxx | |
parent | cf0e005202b3d17ad1f3c17536065c5589b97f93 (diff) | |
parent | 73f648f167e9b11739c4dbbdbd5c024baf1e39ad (diff) | |
download | CMake-60ebd0acf843bbe87f94b39d6807a072532cdb07.zip CMake-60ebd0acf843bbe87f94b39d6807a072532cdb07.tar.gz CMake-60ebd0acf843bbe87f94b39d6807a072532cdb07.tar.bz2 |
Merge topic 'size-empty'
73f648f1 use empty method to check for emptyness
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r-- | Source/cmFindPackageCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index 72b5320..405dce3 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -130,7 +130,7 @@ void cmFindPackageCommand::AppendSearchPathGroups() bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args, cmExecutionStatus&) { - if (args.size() < 1) { + if (args.empty()) { this->SetError("called with incorrect number of arguments"); return false; } |