diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 09:43:35 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 09:43:35 +0800 |
| commit | 0f3c9898430995259fe709235bf9fa27c0fc7329 (patch) | |
| tree | 475e0a40314f1b08587ad7a2e767be3a9ef645b0 /client.cxx | |
| parent | df2437eb869fe404aac56f03aa5015fca8bcaaf1 (diff) | |
Conform to updated libicclient interface
Diffstat (limited to 'client.cxx')
| -rw-r--r-- | client.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -2,12 +2,8 @@ #include <memory> #include <QObject> #include <icclient/typedefs.h> -#include <icclient/catalog.h> -#include <icclient/client.h> #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<Product>{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 } |