diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-19 11:51:56 +0800 | 
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-19 11:51:56 +0800 | 
| commit | ab3eecd8715c4b13d90e78ca4e349d3b493dea34 (patch) | |
| tree | b52fc6a1f96216ec9f11b8150a6ba1a1e83fac1f | |
| parent | 582ad4435408bdc19a007315e2c41770174cd606 (diff) | |
Provide argumentless constructors
| -rw-r--r-- | qicclient/catalog.hxx | 1 | ||||
| -rw-r--r-- | qicclient/product.hxx | 1 | 
2 files changed, 2 insertions, 0 deletions
| 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} |