summaryrefslogtreecommitdiff
path: root/catalog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'catalog.cxx')
-rw-r--r--catalog.cxx4
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();
}