summaryrefslogtreecommitdiff
path: root/interchange.cxx
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-12 10:47:50 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-12 10:47:50 +0800
commit82f3e8426f4092831d25a97e05a91ce3663bc3c6 (patch)
treea57c4f93f447d67a82c2abe60b0dbaa319ebd6ef /interchange.cxx
parent4b8ef74da93c6ef4661c77373ea6818397e8d798 (diff)
Jenis parameter konstruksi Interchange berubah
Diffstat (limited to 'interchange.cxx')
-rw-r--r--interchange.cxx5
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);
}
}