summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-16 14:21:39 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-09-16 14:21:39 (GMT)
commit60ebd0acf843bbe87f94b39d6807a072532cdb07 (patch)
treeae2825e55031a78ea26985020671e689ac6940ca /Source/cmFindPackageCommand.cxx
parentcf0e005202b3d17ad1f3c17536065c5589b97f93 (diff)
parent73f648f167e9b11739c4dbbdbd5c024baf1e39ad (diff)
downloadCMake-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.cxx2
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;
}