mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
use empty method to check for emptyness
This commit is contained in:
@@ -22,7 +22,7 @@ bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args,
|
||||
"The build_name command should not be called; see CMP0036.")) {
|
||||
return true;
|
||||
}
|
||||
if (args.size() < 1) {
|
||||
if (args.empty()) {
|
||||
this->SetError("called with incorrect number of arguments");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user