diff options
| author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-30 18:02:59 +0800 |
|---|---|---|
| committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-30 18:02:59 +0800 |
| commit | 9aea7c06c3702b313aea183e841df94a27b8c06a (patch) | |
| tree | 271ca9cd2dfa6199fe08fe68401ebfcbd13fc815 /catalog.cxx | |
| parent | 30da849074d90ecd7baaf7705aee81149c732dcd (diff) | |
Catalog uses similar term as previous commit
Diffstat (limited to 'catalog.cxx')
| -rw-r--r-- | catalog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/catalog.cxx b/catalog.cxx index 61fd0fd..6415de7 100644 --- a/catalog.cxx +++ b/catalog.cxx @@ -6,7 +6,7 @@ namespace ICClient { Catalog::Catalog(icclient_catalog* catalog, QObject* parent) : - catalog{catalog}, + m_data{catalog}, QAbstractListModel{parent} { for (size_t i = 0; i < catalog->length; i++) @@ -92,7 +92,7 @@ namespace ICClient { product.crossSell = catalog->data(index, Product::CrossSellRole).toStringList(); addProduct(product); } - this->catalog = const_cast<icclient_catalog*>(catalog->c_catalog()); + this->m_data = const_cast<icclient_catalog*>(catalog->constData()); emit updated(); } |