diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-07 18:44:13 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-07 18:44:13 +0800 |
commit | fa11214a4e9181cff9f29e5774e09004ac5acfea (patch) | |
tree | d337d876d287d19d303709ff32639dc7cbaf6b4a | |
parent | 2fbcfe27235a0852dce3d0ace748c639495d6092 (diff) |
Order free-er API changed
-rw-r--r-- | interchange/ord.hxx | 5 | ||||
-rw-r--r-- | ord.cxx | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/interchange/ord.hxx b/interchange/ord.hxx index f424d4d..af06d52 100644 --- a/interchange/ord.hxx +++ b/interchange/ord.hxx @@ -34,10 +34,7 @@ namespace QInterchange { public: explicit Ord(QObject* parent = nullptr); - ~Ord() - { - if (m_data) interchange_ord_free(m_data); - } + ~Ord(); int rowCount(QModelIndex const& parent = QModelIndex()) const Q_DECL_OVERRIDE; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; @@ -17,6 +17,11 @@ namespace QInterchange { ord = this; } + Ord::~Ord() + { + if (m_data) interchange_ord_free_order(m_data); + } + int Ord::rowCount(QModelIndex const& parent) const { Q_UNUSED(parent) |