From ab3eecd8715c4b13d90e78ca4e349d3b493dea34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sat, 19 Jun 2021 11:51:56 +0800 Subject: Provide argumentless constructors --- qicclient/catalog.hxx | 1 + qicclient/product.hxx | 1 + 2 files changed, 2 insertions(+) (limited to 'qicclient') diff --git a/qicclient/catalog.hxx b/qicclient/catalog.hxx index 4deeff3..616f6fb 100644 --- a/qicclient/catalog.hxx +++ b/qicclient/catalog.hxx @@ -13,6 +13,7 @@ namespace QICClient { Q_OBJECT public: + Catalog(QObject* parent = nullptr) : QObject{parent} {} Catalog(struct icclient_catalog* catalog, QObject* parent = nullptr); ~Catalog(); int rowCount(QModelIndex const& parent = QModelIndex()) const Q_DECL_OVERRIDE; diff --git a/qicclient/product.hxx b/qicclient/product.hxx index 980132b..57f9641 100644 --- a/qicclient/product.hxx +++ b/qicclient/product.hxx @@ -20,6 +20,7 @@ namespace QICClient { CrossSellRole }; + Product() {} Product(struct icclient_product* product) : price{product->price}, weight{product->weight} -- cgit v1.2.3