From 6aba4774d836194e913e56c0c85fa30407d0e5cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sat, 21 Sep 2019 07:42:57 +0800 Subject: Signals are emitted regardless of the carried data nullness --- client.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.cxx b/client.cxx index e093e43..0127d26 100644 --- a/client.cxx +++ b/client.cxx @@ -71,14 +71,14 @@ namespace RTClient { { rtclient_user* user = NULL; rtclient_user_showid(&user, id); - if (user) emit userShown(user); + emit userShown(user); } void Client::userShow(QString const& name) { rtclient_user* user = NULL; rtclient_user_showname(&user, name.toLatin1().constData()); - if (user) emit userShown(user); + emit userShown(user); } void Client::ticketNew(QString const& queue @@ -117,7 +117,7 @@ namespace RTClient { QString query = "Owner='" % owner % "'";; rtclient_ticketlist* ticketList = NULL; rtclient_ticket_search(&ticketList, query.toLatin1().constData()); - if (ticketList) emit ticketSearched(ticketList); + emit ticketSearched(ticketList); } Client::~Client() -- cgit v1.2.3