gui: Fixed unused parameters and spurious ; warnings in one of the headers

This commit is contained in:
dragonmux
2024-01-04 10:39:45 +01:00
committed by myrtle
parent cb4db2d368
commit e9c69ac00c
+5 -5
View File
@@ -71,7 +71,7 @@ class Item
if (parent_ != nullptr) {
parent_->addChild(this);
}
};
}
// Number of children.
int count() const { return children_.count(); }
@@ -102,9 +102,9 @@ class Item
virtual bool canFetchMore() const { return false; }
virtual void fetchMore() {}
virtual boost::optional<Item *> getById(IdStringList id) { return boost::none; }
virtual void search(QList<Item *> &results, QString text, int limit) {}
virtual void updateElements(Context *ctx, std::vector<IdStringList> elements) {}
virtual boost::optional<Item *> getById(IdStringList /*id*/) { return boost::none; }
virtual void search(QList<Item *> &/*results*/, QString /*text*/, int /*limit*/) { }
virtual void updateElements(Context * /*ctx*/, std::vector<IdStringList> /*elements*/) { }
virtual ~Item()
{
@@ -147,7 +147,7 @@ class IdList : public Item
public:
// Create an IdList at given parent that will contain elements of
// the given type.
IdList(ElementType type) : Item("root", nullptr), child_type_(type) {}
IdList(ElementType type) : Item("root", nullptr), child_type_(type) { }
// Split a name into alpha/non-alpha parts, which is then used for sorting
// of children.