use empty method to check for emptyness

This commit is contained in:
Daniel Pfeifer
2016-09-15 23:59:29 +02:00
parent 6e06a53ebf
commit 73f648f167
44 changed files with 46 additions and 46 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
bool cmIncludeRegularExpressionCommand::InitialPass(
std::vector<std::string> const& args, cmExecutionStatus&)
{
if ((args.size() < 1) || (args.size() > 2)) {
if ((args.empty()) || (args.size() > 2)) {
this->SetError("called with incorrect number of arguments");
return false;
}