diff options
Diffstat (limited to 'src/example.h')
-rw-r--r-- | src/example.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/example.h b/src/example.h index 8a2b529..c0f405c 100644 --- a/src/example.h +++ b/src/example.h @@ -38,9 +38,10 @@ class ExampleSDict : public SDict<Example> public: ExampleSDict(int size=17) : SDict<Example>(size) {} ~ExampleSDict() {} - int compareItems(QCollection::Item item1,QCollection::Item item2) + private: + int compareValues(const Example *item1,const Example *item2) const { - return qstricmp(((Example *)item1)->name,((Example *)item2)->name); + return qstricmp(item1->name,item2->name); } }; |