mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
use empty method to check for emptyness
This commit is contained in:
@@ -104,7 +104,7 @@ cmVariableWatchCommand::~cmVariableWatchCommand()
|
||||
bool cmVariableWatchCommand::InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus&)
|
||||
{
|
||||
if (args.size() < 1) {
|
||||
if (args.empty()) {
|
||||
this->SetError("must be called with at least one argument.");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user