diff options
Diffstat (limited to 'qicclient')
-rw-r--r-- | qicclient/catalog.hxx | 6 | ||||
-rw-r--r-- | qicclient/product.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/qicclient/catalog.hxx b/qicclient/catalog.hxx index 244f4f0..4deeff3 100644 --- a/qicclient/catalog.hxx +++ b/qicclient/catalog.hxx @@ -13,11 +13,11 @@ namespace QICClient { Q_OBJECT public: - Catalog(icclient_catalog* catalog, QObject* parent = nullptr); + Catalog(struct icclient_catalog* catalog, QObject* parent = nullptr); ~Catalog(); int rowCount(QModelIndex const& parent = QModelIndex()) const Q_DECL_OVERRIDE; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; - icclient_catalog const* constData() const { return m_data; } + struct icclient_catalog const* constData() const { return m_data; } protected: QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE; @@ -25,7 +25,7 @@ namespace QICClient { private: void addProduct(Product const& product); QList<Product> products; - icclient_catalog* m_data; + struct icclient_catalog* m_data; }; } diff --git a/qicclient/product.hxx b/qicclient/product.hxx index 18b850a..980132b 100644 --- a/qicclient/product.hxx +++ b/qicclient/product.hxx @@ -20,7 +20,7 @@ namespace QICClient { CrossSellRole }; - Product(icclient_product* product) : + Product(struct icclient_product* product) : price{product->price}, weight{product->weight} { |