summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-20 10:25:52 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-20 10:25:52 +0800
commit323c8d0d1d39032f4a5716708279134a65ccd3f2 (patch)
tree7a3aed49207b4aba7725ed2fd5bee26b92e52fed
parent6a5a3ba58a94b1eb4ce53ea89a54e21c53c65561 (diff)
Include more necessary headers to compile
with the latest librtclient
-rw-r--r--client.cxx1
m---------librtclient0
-rw-r--r--ticket.cxx5
-rw-r--r--user.cxx1
4 files changed, 5 insertions, 2 deletions
diff --git a/client.cxx b/client.cxx
index 340ff5e..e093e43 100644
--- a/client.cxx
+++ b/client.cxx
@@ -1,5 +1,6 @@
#include <QStringBuilder>
#include <rtclient/client.h>
+#include <rtclient/ticket.h>
#include "qrtclient/client.hxx"
namespace RTClient {
diff --git a/librtclient b/librtclient
-Subproject c6d5739028f2337bd0418084a319705bd5b8984
+Subproject 0898723a7387f8e5d3086dd9511d88561ccc259
diff --git a/ticket.cxx b/ticket.cxx
index 461e554..026a23d 100644
--- a/ticket.cxx
+++ b/ticket.cxx
@@ -1,4 +1,5 @@
-#include <rtclient/client.h>
+#include <cstddef>
+#include <rtclient/ticket.h>
#include "qrtclient/ticket.hxx"
namespace RTClient {
@@ -41,7 +42,7 @@ namespace RTClient {
void TicketList::update(rtclient_ticketlist* ticketList)
{
- for (unsigned int i = 0; i < ticketList->length; i++)
+ for (size_t i = 0; i < ticketList->length; i++)
addTicket(Ticket{ticketList->tickets[i]});
rtclient_ticket_freelist(ticketList);
emit updated();
diff --git a/user.cxx b/user.cxx
index c9984cb..ee2d2d0 100644
--- a/user.cxx
+++ b/user.cxx
@@ -1,3 +1,4 @@
+#include <cstddef>
#include <rtclient/client.h>
#include "qrtclient/user.hxx"