From 0f3c9898430995259fe709235bf9fa27c0fc7329 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, 13 Jun 2021 09:43:35 +0800 Subject: Conform to updated libicclient interface --- client.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'client.cxx') diff --git a/client.cxx b/client.cxx index 7c69b84..243313d 100644 --- a/client.cxx +++ b/client.cxx @@ -2,12 +2,8 @@ #include #include #include -#include -#include #include "qicclient/catalog.hxx" -#ifndef __EMSCRIPTEN__ #include "qicclient/ord.hxx" -#endif #include "qicclient/client.hxx" static QICClient::Client *client; @@ -15,7 +11,7 @@ static QICClient::Client *client; static void callback(icclient_catalog* catalog) { client->emitCatalog(catalog); - icclient_catalog_free(catalog); + icclient_free_catalog(catalog); } namespace QICClient { @@ -53,7 +49,6 @@ namespace QICClient { if (product) emit gotFlyPage(shared_ptr{new Product{product}}); } -#ifndef __EMSCRIPTEN__ void Client::order(QString const& sku, Catalog const& catalog, Ord& order) { auto c_order = order.data(); @@ -61,6 +56,5 @@ namespace QICClient { &c_order); order.setData(c_order); } -#endif } -- cgit v1.2.3