summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-05-05 11:47:17 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-05-05 11:47:17 (GMT)
commit1854ad69bf183f34c937145eba437f653ef67f0b (patch)
tree96f2882cda1fb6e0a73175bae857ff1716267b86 /src/code.l
parent52e32ead5d8152d75a18f3cc7f4b7e5c7bb38b29 (diff)
downloadDoxygen-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.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code.l b/src/code.l
index 8c6e23b..7ad4ac1 100644
--- a/src/code.l
+++ b/src/code.l
@@ -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());