From 9831d9a029ad640a0c6202c80ce96096197819b6 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: Wed, 16 Jun 2021 23:18:25 +0800 Subject: Conform to update libicclient --- admin.cxx | 8 +++----- qicclient/admin.hxx | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/admin.cxx b/admin.cxx index 5b0d468..1e575df 100644 --- a/admin.cxx +++ b/admin.cxx @@ -75,15 +75,13 @@ namespace QICClient { void Admin::newItem(QString const& description, QString const& comment, QString const& price, QString const& imagePath) { - icclient_admin_newitem(description.toLatin1().constData(), - comment.toLatin1().constData(), - price.toLatin1().constData(), - imagePath.toLatin1().constData()); + icclient_admin_new_item(description.toLatin1().constData(), comment.toLatin1().constData(), + price.toLatin1().constData(), imagePath.toLatin1().constData(), nullptr); } void Admin::logOut() { - icclient_admin_logout(m_data); + icclient_admin_logout(m_data, nullptr); setData(nullptr); } diff --git a/qicclient/admin.hxx b/qicclient/admin.hxx index f242227..faf0608 100644 --- a/qicclient/admin.hxx +++ b/qicclient/admin.hxx @@ -45,8 +45,8 @@ namespace QICClient { void setSuper(bool super); public slots: - void newItem(QString const& description, QString const& comment, - QString const& price, QString const& imagePath); + void newItem(QString const& description, QString const& comment, QString const& price, + QString const& imagePath); void logOut(); signals: -- cgit v1.2.3