From c1d0defeb364527218d1187b9be87872282428a8 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: Wed, 25 Sep 2019 09:29:19 +0800 Subject: Change NULL to nullptr --- client.cxx | 6 +++--- qrtclient/client.hxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client.cxx b/client.cxx index 38501e5..1e34666 100644 --- a/client.cxx +++ b/client.cxx @@ -69,14 +69,14 @@ namespace RTClient { void Client::userShow(unsigned int id) { - rtclient_user* user = NULL; + rtclient_user* user = nullptr; rtclient_user_showid(&user, id); emit userShown(user); } void Client::userShow(QString const& name) { - rtclient_user* user = NULL; + rtclient_user* user = nullptr; rtclient_user_showname(&user, name.toLatin1().constData()); emit userShown(user); } @@ -115,7 +115,7 @@ namespace RTClient { void Client::ticketSearch(QString const& owner) { QString query{"Owner='" % owner % "'"}; - rtclient_ticketlist* ticketList = NULL; + rtclient_ticketlist* ticketList = nullptr; rtclient_ticket_search(&ticketList, query.toLatin1().constData()); emit ticketSearched(ticketList); } diff --git a/qrtclient/client.hxx b/qrtclient/client.hxx index 13b935a..75477d7 100644 --- a/qrtclient/client.hxx +++ b/qrtclient/client.hxx @@ -14,7 +14,7 @@ namespace RTClient { Q_OBJECT public: - Client(char const* url, char const* certificate = NULL); + Client(char const* url, char const* certificate = nullptr); ~Client(); public slots: -- cgit v1.2.3