summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-06-17 19:09:11 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-06-17 19:09:11 (GMT)
commitcd81aa200a31e486e61fe701e4a782ed929e90c2 (patch)
tree60c06b9104c39e41594c496d3f5549af889d7f3d /src/doxygen.cpp
parent4628578fe856f3ccfe3ade8f702671bfa1854566 (diff)
downloadDoxygen-cd81aa200a31e486e61fe701e4a782ed929e90c2.zip
Doxygen-cd81aa200a31e486e61fe701e4a782ed929e90c2.tar.gz
Doxygen-cd81aa200a31e486e61fe701e4a782ed929e90c2.tar.bz2
Avoid calling non-const member aliases and 0 pointer dereference in sqlite3
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 84a4900..c7fce01 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -5551,7 +5551,7 @@ static bool findGlobalMember(Entry *root,
NamespaceDef *rnd = 0;
if (!namespaceName.isEmpty()) rnd = Doxygen::namespaceSDict->find(namespaceName);
- ArgumentList *mdAl = md->argumentList();
+ const ArgumentList *mdAl = const_cast<const MemberDef *>(md)->argumentList();
bool matching=
(mdAl==0 && root->argList->count()==0) ||
md->isVariable() || md->isTypedef() || /* in case of function pointers */
@@ -6721,10 +6721,10 @@ static void findMember(Entry *root,
if (rmn)
{
MemberNameIterator rmni(*rmn);
- MemberDef *rmd;
+ const MemberDef *rmd;
while ((rmd=rmni.current()) && !found) // see if we got another member with matching arguments
{
- ArgumentList *rmdAl = rmd->argumentList();
+ const ArgumentList *rmdAl = rmd->argumentList();
// check for matching argument lists
if (
matchArguments2(rmd->getOuterScope(),rmd->getFileDef(),rmdAl,