diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-20 09:07:46 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-20 09:07:46 +0800 |
commit | 54ed057016a0df2c96d0cc9c69dee3a8b3b60458 (patch) | |
tree | 1533edbda10cd50978b70a3f9dd8a2b0015183e9 /client.cxx | |
parent | 3b022ef62340a9ca932d757b20bb024e8e6a2f94 (diff) |
More efficient ticket search string construction
Diffstat (limited to 'client.cxx')
-rw-r--r-- | client.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,3 +1,4 @@ +#include <QStringBuilder> #include <rtclient/client.h> #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); |