From 82f3e8426f4092831d25a97e05a91ce3663bc3c6 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: Sun, 12 Mar 2023 10:47:50 +0800 Subject: Jenis parameter konstruksi Interchange berubah --- interchange.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'interchange.cxx') diff --git a/interchange.cxx b/interchange.cxx index 4806865..9833b1d 100644 --- a/interchange.cxx +++ b/interchange.cxx @@ -85,13 +85,12 @@ namespace QInterchange { void Interchange::order(QString const& sku, Catalog const& catalog, Ord& order) { - auto c_order = order.data(); + auto data = order.data(); interchange_ord_order(sku.toLatin1().constData(), - catalog.constData(), &c_order, + catalog.constData(), &data, [](interchange_response* response) { interchange->emitOrder(QString{response->data}); interchange_free_response(response); }); - order.setData(c_order); } } -- cgit v1.2.3