Debian Codegraph @

src/plugins/schedulers/tj/taskjuggler/BookingList.cpp

raw
1 /*
2 * BookingList.h - TaskJuggler
3 *
4 * SPDX-FileCopyrightText: 2001, 2002, 2003, 2004 Chris Schlaeger <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
9 *
10 * $Id$
11 */
12 // clazy:excludeall=qstring-arg
13 #include "BookingList.h"
14
15 int
16 BookingList::compareItems(QCollection::Item i1, QCollection::Item i2)
17 {
18 Booking* b1 = static_cast<Booking*>(i1);
19 Booking* b2 = static_cast<Booking*>(i2);
20
21 return b1->getInterval().compare(b2->getInterval());
22 }
23