From 19713dcc51ceb3930770cb25ec85590b86316cf7 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 4 Jan 2021 16:27:53 +0100 Subject: issue #8304: compilation failure --- src/clangparser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clangparser.cpp b/src/clangparser.cpp index 8add542..4129d55 100644 --- a/src/clangparser.cpp +++ b/src/clangparser.cpp @@ -137,7 +137,7 @@ class ClangTUParser::Private StringVector filesInSameTU; // state while parsing sources - MemberDef *currentMemberDef=0; + const MemberDef *currentMemberDef=0; uint currentLine=0; bool searchForBody=FALSE; bool insideBody=FALSE; @@ -492,11 +492,11 @@ QCString ClangTUParser::lookup(uint line,const char *symbol) void ClangTUParser::writeLineNumber(CodeOutputInterface &ol,const FileDef *fd,uint line) { - Definition *d = fd ? fd->getSourceDefinition(line) : 0; + const Definition *d = fd ? fd->getSourceDefinition(line) : 0; if (d && d->isLinkable()) { p->currentLine=line; - MemberDef *md = fd->getSourceMember(line); + const MemberDef *md = fd->getSourceMember(line); if (md && md->isLinkable()) // link to member { if (p->currentMemberDef!=md) // new member, start search for body -- cgit v0.12