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/cmIncludeCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/cmIncludeCommand.cxx') diff --git a/Source/cmIncludeCommand.cxx b/Source/cmIncludeCommand.cxx index 360ebeb4b2..c90314e1e8 100644 --- a/Source/cmIncludeCommand.cxx +++ b/Source/cmIncludeCommand.cxx @@ -15,7 +15,7 @@ bool cmIncludeCommand::InitialPass(std::vector const& args, cmExecutionStatus&) { - if (args.size() < 1 || args.size() > 4) { + if (args.empty() || args.size() > 4) { this->SetError("called with wrong number of arguments. " "include() only takes one file."); return false; -- cgit v1.2.1