summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-16 23:18:25 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-16 23:18:25 +0800
commit9831d9a029ad640a0c6202c80ce96096197819b6 (patch)
tree9996369207c9d092b649f2f2e17bd91ab17af610
parent32573486befebc6a6030de295cf04b9df461a6b4 (diff)
Conform to update libicclient
-rw-r--r--admin.cxx8
-rw-r--r--qicclient/admin.hxx4
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: