summaryrefslogtreecommitdiff
path: root/ticket.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ticket.cxx')
-rw-r--r--ticket.cxx5
1 files changed, 3 insertions, 2 deletions
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();