diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-11-04 19:17:53 +0700 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-11-04 19:17:53 +0700 |
commit | d7b7252da7f110d8903250c83109cd73e6b2de34 (patch) | |
tree | 8d244596c03733d8d33f5dfe9f35d0cb0458436e /client.cxx | |
parent | 29857eef59c6a7bd6958743c83c05932678f2855 (diff) |
order function takes a pointer to order argument
Diffstat (limited to 'client.cxx')
-rw-r--r-- | client.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -21,10 +21,11 @@ namespace ICClient { emit gotAllProducts(catalog); } - void Client::order(QString const& sku, icclient_catalog* catalog) + void Client::order(icclient_ord_order** orderPtr, QString const& sku + , icclient_catalog* catalog) { - icclient_ord_order* order = nullptr; - icclient_order(&order, sku.toLatin1().constData(), catalog); + icclient_order(orderPtr, sku.toLatin1().constData(), catalog); + icclient_ord_order* order = *orderPtr; emit ordered(order); } |