From b65cb2d67b946445ba89e1938cee8527969922cd Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Fri, 15 Oct 2021 10:51:13 +0900 Subject: Imported Upstream version 1.8.7 --- src/membergroup.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/membergroup.h') diff --git a/src/membergroup.h b/src/membergroup.h index c5a2d0c..42e60c5 100644 --- a/src/membergroup.h +++ b/src/membergroup.h @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2013 by Dimitri van Heesch. + * Copyright (C) 1997-2014 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby @@ -125,9 +125,10 @@ class MemberGroupSDict : public SIntDict public: MemberGroupSDict(int size=17) : SIntDict(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(); } }; -- cgit v1.2.3