Use empty() instead of comparing size() with 0.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2010-01-03 18:45:02 +00:00
parent 3b6dd6f1d1
commit 4a25199ba7

View File

@ -237,7 +237,7 @@ static std::string pick_one(const std::string &files)
{
std::vector<std::string> ids = utils::split(files);
if (ids.size() == 0)
if (ids.empty())
return "";
if (ids.size() == 1)
return ids[0];