From 7f8fbc326ba6a9f6bb643983ca12a31b40fa7c00 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 23 Mar 2020 21:28:48 +0100 Subject: issue #7624: non-const getClassDef() called on aliased member. Please report as a bug. --- src/searchindex.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/searchindex.cpp b/src/searchindex.cpp index 0e3ef44..25d1576 100644 --- a/src/searchindex.cpp +++ b/src/searchindex.cpp @@ -1040,7 +1040,7 @@ void writeJavaScriptSearchIndex() int itemCount=0; for (li.toFirst();(dl=li.current());++li) { - Definition *d = dl->getFirst(); + const Definition *d = dl->getFirst(); if (!firstEntry) { @@ -1052,7 +1052,7 @@ void writeJavaScriptSearchIndex() if (dl->count()==1) // item with a unique name { - MemberDef *md = dynamic_cast(d); + const MemberDef *md = dynamic_cast(d); QCString anchor = d->anchor(); ti << "'" << externalRef("../",d->getReference(),TRUE) @@ -1096,15 +1096,15 @@ void writeJavaScriptSearchIndex() { QListIterator di(*dl); bool overloadedFunction = FALSE; - Definition *prevScope = 0; + const Definition *prevScope = 0; int childCount=0; for (di.toFirst();(d=di.current());) { ++di; - Definition *scope = d->getOuterScope(); - Definition *next = di.current(); - Definition *nextScope = 0; - MemberDef *md = dynamic_cast(d); + const Definition *scope = d->getOuterScope(); + const Definition *next = di.current(); + const Definition *nextScope = 0; + const MemberDef *md = dynamic_cast(d); if (next) nextScope = next->getOuterScope(); QCString anchor = d->anchor(); @@ -1148,12 +1148,12 @@ void writeJavaScriptSearchIndex() QCString name; if (d->definitionType()==Definition::TypeClass) { - name = convertToXML((dynamic_cast(d))->displayName()); + name = convertToXML((dynamic_cast(d))->displayName()); found = TRUE; } else if (d->definitionType()==Definition::TypeNamespace) { - name = convertToXML((dynamic_cast(d))->displayName()); + name = convertToXML((dynamic_cast(d))->displayName()); found = TRUE; } else if (scope==0 || scope==Doxygen::globalScope) // in global scope -- cgit v0.12