summaryrefslogtreecommitdiffstats
path: root/src/define.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/define.h')
-rw-r--r--src/define.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/define.h b/src/define.h
index 843ecec..bc758c0 100644
--- a/src/define.h
+++ b/src/define.h
@@ -54,9 +54,10 @@ class DefineList : public QList<Define>
public:
DefineList() : QList<Define>() {}
~DefineList() {}
- int compareItems(QCollection::Item i1,QCollection::Item i2)
+ private:
+ int compareValues(const Define *d1,const Define *d2) const
{
- return qstricmp(((Define *)i1)->name,((Define *)i2)->name);
+ return qstricmp(d1->name,d2->name);
}
};
@@ -67,12 +68,12 @@ class DefineName : public QList<Define>
DefineName(const char *n) : QList<Define>() { name=n; }
~DefineName() {}
const char *nameString() const { return name; }
- int compareItems(QCollection::Item i1,QCollection::Item i2)
+
+ private:
+ int compareValues(const Define *d1,const Define *d2) const
{
- return qstricmp(((Define *)i1)->name,((Define *)i2)->name);
+ return qstricmp(d1->name,d2->name);
}
-
- private:
QCString name;
};
@@ -82,10 +83,10 @@ class DefineNameList : public QList<DefineName>
public:
DefineNameList() : QList<DefineName>() {}
~DefineNameList() {}
- int compareItems(QCollection::Item i1,QCollection::Item i2)
+ private:
+ int compareValues(const DefineName *n1,const DefineName *n2) const
{
- return qstricmp(((DefineName *)i1)->nameString(),
- ((DefineName *)i2)->nameString());
+ return qstricmp(n1->nameString(),n2->nameString());
}
};