diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-05-05 11:47:17 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-05-05 11:47:17 (GMT) |
commit | 1854ad69bf183f34c937145eba437f653ef67f0b (patch) | |
tree | 96f2882cda1fb6e0a73175bae857ff1716267b86 /src/code.l | |
parent | 52e32ead5d8152d75a18f3cc7f4b7e5c7bb38b29 (diff) | |
download | Doxygen-1854ad69bf183f34c937145eba437f653ef67f0b.zip Doxygen-1854ad69bf183f34c937145eba437f653ef67f0b.tar.gz Doxygen-1854ad69bf183f34c937145eba437f653ef67f0b.tar.bz2 |
Further const correctness changes
Diffstat (limited to 'src/code.l')
-rw-r--r-- | src/code.l | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -860,7 +860,7 @@ static bool getLinkInScope(const QCString &c, // scope bool varOnly=FALSE ) { - MemberDef *md = 0; + const MemberDef *md = 0; const ClassDef *cd = 0; const FileDef *fd = 0; const NamespaceDef *nd = 0; @@ -878,7 +878,7 @@ static bool getLinkInScope(const QCString &c, // scope anchor.sprintf("a%d",g_anchorCount); //printf("addExampleFile(%s,%s,%s)\n",anchor.data(),g_exampleName.data(), // g_exampleFile.data()); - if (md->addExample(anchor,g_exampleName,g_exampleFile)) + if (const_cast<MemberDef*>(md)->addExample(anchor,g_exampleName,g_exampleFile)) { ol.writeCodeAnchor(anchor); g_anchorCount++; @@ -897,7 +897,7 @@ static bool getLinkInScope(const QCString &c, // scope if (g_currentDefinition && g_currentMemberDef && md!=g_currentMemberDef && g_insideBody && g_collectXRefs) { - addDocCrossReference(g_currentMemberDef,md); + addDocCrossReference(g_currentMemberDef,const_cast<MemberDef*>(md)); } //printf("d->getReference()=`%s' d->getOutputBase()=`%s' name=`%s' member name=`%s'\n",d->getReference().data(),d->getOutputFileBase().data(),d->name().data(),md->name().data()); |