summaryrefslogtreecommitdiff
path: root/ticket.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ticket.cxx')
-rw-r--r--ticket.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/ticket.cxx b/ticket.cxx
index 4693225..7b21bc8 100644
--- a/ticket.cxx
+++ b/ticket.cxx
@@ -42,14 +42,14 @@ namespace RTClient {
emit rowCountChanged();
}
- void TicketList::update(rtclient_search_ticket_list* ticketList)
+ void TicketList::update(rtclient_search_ticket_list* list)
{
- if (ticketList) {
- for (size_t i = 0; i < ticketList->length; i++)
- addTicket(Ticket{ticketList->tickets[i]});
- rtclient_search_ticket_free(ticketList);
+ if (list) {
+ for (size_t i = 0; i < list->length; i++)
+ addTicket(Ticket{list->tickets[i]});
+ rtclient_search_ticket_free(list);
+ emit updated();
}
- emit updated();
}
}