mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 14:27:24 +00:00
Use empty() instead of comparing size() with 0.
Issue found by cppcheck.
This commit is contained in:
parent
3b6dd6f1d1
commit
4a25199ba7
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user