summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/util.h b/src/util.h
index a36a769..d41f8a2 100644
--- a/src/util.h
+++ b/src/util.h
@@ -95,12 +95,6 @@ class LetterToIndexMap : public SIntDict<T>
{
public:
LetterToIndexMap() { SIntDict<T>::setAutoDelete(TRUE); }
- int compareItems(QCollection::Item item1, QCollection::Item item2)
- {
- T *l1=(T *)item1;
- T *l2=(T *)item2;
- return (int)l1->letter()-(int)l2->letter();
- }
void append(uint letter,typename T::ElementType *elem)
{
T *l = SIntDict<T>::find((int)letter);
@@ -111,6 +105,11 @@ class LetterToIndexMap : public SIntDict<T>
}
l->append(elem);
}
+ private:
+ int compareValues(const T *l1, const T *l2) const
+ {
+ return (int)l1->letter()-(int)l2->letter();
+ }
};
//--------------------------------------------------------------------