Replace 'foo.size() == 0' pattern with foo.empty().

This commit is contained in:
Stephen Kelly
2015-01-15 00:31:49 +01:00
parent d92887efab
commit 930bd47816
35 changed files with 72 additions and 72 deletions
+1 -1
View File
@@ -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;