OSDN Git Service

adjust integer's signedness
[tjqt4port/tj2qt4.git] / taskjuggler / TransactionList.cpp
1 /*
2  * TransactionList.cpp - TaskJuggler
3  *
4  * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
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 #include "TransactionList.h"
13 //Added by qt3to4:
14 #include <Q3PtrCollection>
15
16 int
17 TransactionList::compareItems(Q3PtrCollection::Item i1, Q3PtrCollection::Item i2)
18 {
19     Transaction* t1 = static_cast<Transaction*>(i1);
20     Transaction* t2 = static_cast<Transaction*>(i2);
21
22     if (t1->date == t2->date)
23         return 0;
24     else
25         return t2->date - t1->date;
26 }
27