From 30da849074d90ecd7baaf7705aee81149c732dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Tue, 30 Jun 2020 17:26:38 +0800 Subject: Getter setter for C struct data --- client.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client.cxx') 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*) -- cgit v1.2.3