summaryrefslogtreecommitdiff
path: root/Source/cmIncludeCommand.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-15 23:59:29 +0200
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-15 23:59:29 +0200
commit73f648f167e9b11739c4dbbdbd5c024baf1e39ad (patch)
treea50e8a674fa522673a651c11baaee016bacdf173 /Source/cmIncludeCommand.cxx
parent6e06a53ebf58f41cd570d1bbaed7a1c62eac7ed0 (diff)
downloadcmake-73f648f167e9b11739c4dbbdbd5c024baf1e39ad.tar.gz
use empty method to check for emptyness
Diffstat (limited to 'Source/cmIncludeCommand.cxx')
-rw-r--r--Source/cmIncludeCommand.cxx2
1 files changed, 1 insertions, 1 deletions
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<std::string> 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;