summaryrefslogtreecommitdiffstats
path: root/src/membername.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-12-30 17:55:14 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-12-30 17:55:14 (GMT)
commit6e51abf63021dc9fe32c05f003232fe68a08591d (patch)
treee9fe6f526e4a2b22b1a55659331c15750969a019 /src/membername.h
parent744d1ca52e25dfa9e3d656056d87ed7cb6320585 (diff)
downloadDoxygen-6e51abf63021dc9fe32c05f003232fe68a08591d.zip
Doxygen-6e51abf63021dc9fe32c05f003232fe68a08591d.tar.gz
Doxygen-6e51abf63021dc9fe32c05f003232fe68a08591d.tar.bz2
Reduced and improved functionality of QList
- operations on current index and node (next(), prev(), last(), first()) have been removed. - access to internal nodes has been removed. - old QList has been renamed to QInternalList for use inside qtools only. - added type safe compare, new, and delete operations (compareValues(), newValue(), deleteValue()). - add compareValues also to QDict for consistency. - changed doxygen's implementation to comply with the new QList and QDict interface.
Diffstat (limited to 'src/membername.h')
-rw-r--r--src/membername.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/membername.h b/src/membername.h
index 0004aea..1b9dd47 100644
--- a/src/membername.h
+++ b/src/membername.h
@@ -24,14 +24,14 @@
/** Class representing all MemberDef objects with the same name */
class MemberName : public QList<MemberDef>
-{
+{
public:
MemberName(const char *name);
~MemberName();
const char *memberName() const { return name; }
-
- int compareItems(QCollection::Item item1,QCollection::Item item2);
+
private:
+ int compareValues(const MemberDef *item1,const MemberDef *item2) const;
QCString name;
};
@@ -49,7 +49,8 @@ class MemberNameSDict : public SDict<MemberName>
MemberNameSDict(int size) : SDict<MemberName>(size) {}
~MemberNameSDict() {}
- int compareItems(QCollection::Item item1,QCollection::Item item2);
+ private:
+ int compareValues(const MemberName *item1,const MemberName *item2) const;
};
/** Data associated with a MemberDef in an inheritance relation. */
@@ -74,8 +75,8 @@ class MemberNameInfo : public QList<MemberInfo>
MemberNameInfo(const char *name);
~MemberNameInfo() {}
const char *memberName() const { return name; }
- int compareItems(QCollection::Item item1,QCollection::Item item2);
private:
+ int compareValues(const MemberInfo *item1,const MemberInfo *item2) const;
QCString name;
};
@@ -93,11 +94,10 @@ class MemberNameInfoSDict : public SDict<MemberNameInfo>
public:
MemberNameInfoSDict(int size) : SDict<MemberNameInfo>(size) {}
~MemberNameInfoSDict() {}
- int compareItems(QCollection::Item item1,QCollection::Item item2)
- { return qstricmp(
- ((MemberNameInfo *)item1)->memberName(),
- ((MemberNameInfo *)item2)->memberName()
- );
+ private:
+ int compareValues(const MemberNameInfo *item1,const MemberNameInfo *item2) const
+ {
+ return qstricmp(item1->memberName(), item2->memberName());
}
};