diff options
Diffstat (limited to 'src/membergroup.h')
-rw-r--r-- | src/membergroup.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/membergroup.h b/src/membergroup.h index c5a2d0c..1c744d3 100644 --- a/src/membergroup.h +++ b/src/membergroup.h @@ -125,9 +125,10 @@ class MemberGroupSDict : public SIntDict<MemberGroup> public: MemberGroupSDict(int size=17) : SIntDict<MemberGroup>(size) {} ~MemberGroupSDict() {} - int compareItems(QCollection::Item item1,QCollection::Item item2) + private: + int compareValues(const MemberGroup *item1,const MemberGroup *item2) const { - return ((MemberGroup *)item1)->groupId() - ((MemberGroup*)item2)->groupId(); + return item1->groupId() - item2->groupId(); } }; |