From 54ed057016a0df2c96d0cc9c69dee3a8b3b60458 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: Fri, 20 Sep 2019 09:07:46 +0800 Subject: More efficient ticket search string construction --- client.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'client.cxx') diff --git a/client.cxx b/client.cxx index 9a2fc51..f92363e 100644 --- a/client.cxx +++ b/client.cxx @@ -1,3 +1,4 @@ +#include #include #include "qrtclient/client.hxx" @@ -112,9 +113,7 @@ namespace RTClient { void Client::ticketSearch(QString const& owner) { - QString query{"Owner='"}; - query.append(owner); - query.append("'"); + QString query = "Owner='" % owner % "'";; rtclient_ticketlist* ticketList = NULL; rtclient_ticket_search(&ticketList, query.toLatin1().constData()); if (ticketList) emit foundTickets(ticketList); -- cgit v1.2.3