summaryrefslogtreecommitdiffstats
path: root/src/membername.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/membername.cpp')
-rw-r--r--src/membername.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/membername.cpp b/src/membername.cpp
index a5248c3..72809b3 100644
--- a/src/membername.cpp
+++ b/src/membername.cpp
@@ -32,10 +32,10 @@ MemberName::~MemberName()
int MemberName::compareValues(const MemberDef *m1, const MemberDef *m2) const
{
- ClassDef *c1=m1->getClassDef();
- ClassDef *c2=m2->getClassDef();
- FileDef *f1=m1->getFileDef();
- FileDef *f2=m2->getFileDef();
+ const ClassDef *c1=m1->getClassDef();
+ const ClassDef *c2=m2->getClassDef();
+ const FileDef *f1=m1->getFileDef();
+ const FileDef *f2=m2->getFileDef();
if (c1 && c2)
return qstrcmp(c1->name(),c2->name());
else if (f1 && f2)
@@ -52,10 +52,10 @@ MemberNameInfo::MemberNameInfo(const char *n) : QList<MemberInfo>()
int MemberNameInfo::compareValues(const MemberInfo *m1,const MemberInfo *m2) const
{
- ClassDef *c1=m1->memberDef->getClassDef();
- ClassDef *c2=m2->memberDef->getClassDef();
- FileDef *f1=m1->memberDef->getFileDef();
- FileDef *f2=m2->memberDef->getFileDef();
+ const ClassDef *c1=m1->memberDef->getClassDef();
+ const ClassDef *c2=m2->memberDef->getClassDef();
+ const FileDef *f1=m1->memberDef->getFileDef();
+ const FileDef *f2=m2->memberDef->getFileDef();
if (c1 && c2)
return qstrcmp(c1->name(),c2->name());
else if (f1 && f2)