diff options
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); } } |