Skip to content

Commit

Permalink
Fix clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Friedel committed Nov 20, 2023
1 parent 6e5614c commit 1c016ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/fm-editor/tree/FeatureTreeItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class FeatureTreeItem : public QObject {
Q_OBJECT

public:
FeatureTreeItem *child(int Row) {
FeatureTreeItem *child(size_t Row) {
if (Row < 0 || Row > Children.size()) {

return nullptr;
Expand Down
4 changes: 1 addition & 3 deletions tools/fm-editor/tree/FeatureTreeViewModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class FeatureTreeViewModel : public QAbstractItemModel {
public:
FeatureTreeViewModel(vara::feature::FeatureModel *Model, QObject *Parent)
: QAbstractItemModel(Parent), Model(Model) {
: QAbstractItemModel(Parent) {
auto UniqueRoot = FeatureTreeItem::createFeatureTreeItem(Model->getRoot());
RootItem = UniqueRoot.get();
Items.push_back(std::move(UniqueRoot));
Expand Down Expand Up @@ -67,8 +67,6 @@ class FeatureTreeViewModel : public QAbstractItemModel {
buildRecursive(RawChild);
}
}

vara::feature::FeatureModel *Model;
FeatureTreeItem *RootItem;
std::vector<std::unique_ptr<FeatureTreeItem>> Items;
};
Expand Down

0 comments on commit 1c016ad

Please sign in to comment.