From 35a99ff13a6b656362b61dc37ddba40dd9be1927 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: Thu, 17 Jun 2021 21:47:32 +0800 Subject: Conform to updated libicclient login interfaces --- admin.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'admin.cxx') diff --git a/admin.cxx b/admin.cxx index 6fad89f..c15b3c5 100644 --- a/admin.cxx +++ b/admin.cxx @@ -5,11 +5,9 @@ namespace QICClient { - std::shared_ptr Admin::logIn(QString const& username, QString const& password, void (*handler)(icclient_fetch_t *)) + void Admin::logIn(QString const& username, QString const& password) { - auto admin = new Admin{}; - admin->setData(icclient_admin_login(username.toLatin1().constData(), password.toLatin1().constData(), handler)); - return std::shared_ptr{admin}; + icclient_admin_login(username.toLatin1().constData(), password.toLatin1().constData(), nullptr, nullptr); } void Admin::setUserName(QString const& userName) -- cgit v1.2.3