summaryrefslogtreecommitdiffstats
path: root/src/classlist.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-07-07 20:16:18 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-07-07 20:16:18 (GMT)
commit6c5b1ce29dc2ed6a8fbf7e69b7d085bdb3e87647 (patch)
tree3b82721edc171f76f1a6712ff59e547a592aec23 /src/classlist.cpp
parentf92ed7a658968bac5b777322fea4d7216e41b487 (diff)
downloadDoxygen-6c5b1ce29dc2ed6a8fbf7e69b7d085bdb3e87647.zip
Doxygen-6c5b1ce29dc2ed6a8fbf7e69b7d085bdb3e87647.tar.gz
Doxygen-6c5b1ce29dc2ed6a8fbf7e69b7d085bdb3e87647.tar.bz2
Release-1.4.3-20050707
Diffstat (limited to 'src/classlist.cpp')
-rw-r--r--src/classlist.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/classlist.cpp b/src/classlist.cpp
index fa93a73..b0a1b7f 100644
--- a/src/classlist.cpp
+++ b/src/classlist.cpp
@@ -34,15 +34,17 @@ static int compItems(void *item1,void *item2)
{
ClassDef *c1=(ClassDef *)item1;
ClassDef *c2=(ClassDef *)item2;
- int p1=0,p2=0;
static bool b = Config_getBool("SORT_BY_SCOPE_NAME");
- if (!b)
+ if (b)
{
- p1=getPrefixIndex(c1->className());
- p2=getPrefixIndex(c2->className());
+ return stricmp(c1->qualifiedName(),
+ c2->qualifiedName());
+ }
+ else
+ {
+ return stricmp(c1->className(),
+ c2->className());
}
- return stricmp(c1->className().data()+p1,
- c2->className().data()+p2);
}
int ClassList::compareItems(GCI item1, GCI item2)