diff options
author | David Shah <davey1576@gmail.com> | 2018-08-02 13:24:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-02 13:24:32 +0200 |
commit | fc882d73d6511be4325a7b9c16d6833263c06b10 (patch) | |
tree | aa87f0b6ed56989498fb4facfdf32f1b3d95de87 /gui/treemodel.h | |
parent | 81ee55c7eb2f153ba01a6ff8aba2bffc54daa9dc (diff) | |
parent | ebdfd6ba5edf89eb3365ddb6eb3e62e8a745c719 (diff) | |
download | nextpnr-fc882d73d6511be4325a7b9c16d6833263c06b10.tar.gz nextpnr-fc882d73d6511be4325a7b9c16d6833263c06b10.tar.bz2 nextpnr-fc882d73d6511be4325a7b9c16d6833263c06b10.zip |
Merge pull request #14 from YosysHQ/fix-destructor
Fix destructor for tree Item, fixes clang build as well
Diffstat (limited to 'gui/treemodel.h')
-rw-r--r-- | gui/treemodel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/treemodel.h b/gui/treemodel.h index c3f9fe88..0236a715 100644 --- a/gui/treemodel.h +++ b/gui/treemodel.h @@ -102,7 +102,7 @@ class Item virtual bool canFetchMore() const { return false; } virtual void fetchMore() {} - ~Item() + virtual ~Item() { if (parent_ != nullptr) { parent_->deleteChild(this); |