summaryrefslogtreecommitdiff
path: root/client.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-30 17:26:38 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-30 17:26:38 +0800
commit30da849074d90ecd7baaf7705aee81149c732dcd (patch)
tree347dd3f6c6834db69abde4e64f3eea8e6495abd1 /client.cxx
parentdd94e52d98aa29e0273176e038864c13fbd4aa6b (diff)
Getter setter for C struct data
Diffstat (limited to 'client.cxx')
-rw-r--r--client.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.cxx b/client.cxx
index d10c9b6..8140365 100644
--- a/client.cxx
+++ b/client.cxx
@@ -44,9 +44,9 @@ namespace ICClient {
void Client::order(QString const& sku, Catalog const& catalog, Basket& order)
{
- auto c_order = order.c_order();
+ auto c_order = order.data();
icclient_order(sku.toLatin1().constData(), catalog.c_catalog(), &c_order);
- order.update(c_order);
+ order.setData(c_order);
}
void Client::logIn(size_t (*handler)(void*, size_t, size_t, void*)