Gui: use contains() and isEmpty() instead of count() where possible

This commit is contained in:
Benjamin Nauck
2025-03-10 21:39:54 +01:00
parent 02d095f6e2
commit df3c324b7d
16 changed files with 39 additions and 39 deletions

View File

@@ -78,7 +78,7 @@ const std::string & ToolBarItem::command() const
bool ToolBarItem::hasItems() const
{
return _items.count() > 0;
return !_items.isEmpty();
}
ToolBarItem* ToolBarItem::findItem(const std::string& name)