diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-12 10:47:50 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-12 10:47:50 +0800 |
commit | 82f3e8426f4092831d25a97e05a91ce3663bc3c6 (patch) | |
tree | a57c4f93f447d67a82c2abe60b0dbaa319ebd6ef /interchange.cxx | |
parent | 4b8ef74da93c6ef4661c77373ea6818397e8d798 (diff) |
Jenis parameter konstruksi Interchange berubah
Diffstat (limited to 'interchange.cxx')
-rw-r--r-- | interchange.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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); } } |