From 73f648f167e9b11739c4dbbdbd5c024baf1e39ad Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Thu, 15 Sep 2016 23:59:29 +0200 Subject: use empty method to check for emptyness --- Source/cmFindPackageCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/cmFindPackageCommand.cxx') diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index 8338c2a767..7761759ff7 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -89,7 +89,7 @@ void cmFindPackageCommand::AppendSearchPathGroups() bool cmFindPackageCommand::InitialPass(std::vector const& args, cmExecutionStatus&) { - if (args.size() < 1) { + if (args.empty()) { this->SetError("called with incorrect number of arguments"); return false; } -- cgit v1.2.1