mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
Replace 'foo.size() == 0' pattern with foo.empty().
This commit is contained in:
@@ -3151,7 +3151,7 @@ cmFileCommand::HandleDownloadCommand(std::vector<std::string> const& args)
|
||||
if (hash.get())
|
||||
{
|
||||
std::string actualHash = hash->HashFile(file);
|
||||
if (actualHash.size() == 0)
|
||||
if (actualHash.empty())
|
||||
{
|
||||
this->SetError("DOWNLOAD cannot compute hash on downloaded file");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user