summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-20 09:07:46 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-20 09:07:46 +0800
commit54ed057016a0df2c96d0cc9c69dee3a8b3b60458 (patch)
tree1533edbda10cd50978b70a3f9dd8a2b0015183e9
parent3b022ef62340a9ca932d757b20bb024e8e6a2f94 (diff)
More efficient ticket search string construction
-rw-r--r--client.cxx5
m---------librtclient0
2 files changed, 2 insertions, 3 deletions
diff --git a/client.cxx b/client.cxx
index 9a2fc51..f92363e 100644
--- a/client.cxx
+++ b/client.cxx
@@ -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);
diff --git a/librtclient b/librtclient
-Subproject d57d216e4dad7feeb2710ff4482cc6d03471612
+Subproject c6d5739028f2337bd0418084a319705bd5b8984