diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-05-05 14:23:52 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-05-05 14:23:52 (GMT) |
commit | a216d135700190d0b064c872d5c78a286c3682c4 (patch) | |
tree | ac2df5c5192d4c347458fc529d606ef72da4f6c5 /src/perlmodgen.cpp | |
parent | c637dede9ec30c2e35f19636edc0b3fd424b45e5 (diff) | |
download | Doxygen-a216d135700190d0b064c872d5c78a286c3682c4.zip Doxygen-a216d135700190d0b064c872d5c78a286c3682c4.tar.gz Doxygen-a216d135700190d0b064c872d5c78a286c3682c4.tar.bz2 |
Add const correctness for argument lists
Diffstat (limited to 'src/perlmodgen.cpp')
-rw-r--r-- | src/perlmodgen.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp index d6e2af6..3813c56 100644 --- a/src/perlmodgen.cpp +++ b/src/perlmodgen.cpp @@ -1617,23 +1617,23 @@ void PerlModGenerator::generatePerlModForMember(const MemberDef *md,const Defini md->memberType()!=MemberType_Enumeration) m_output.addFieldQuotedString("type", md->typeString()); - ArgumentList *al = md->argumentList(); + const ArgumentList *al = md->argumentList(); if (isFunc) //function { m_output.addFieldBoolean("const", al!=0 && al->constSpecifier) .addFieldBoolean("volatile", al!=0 && al->volatileSpecifier); m_output.openList("parameters"); - ArgumentList *declAl = md->declArgumentList(); - ArgumentList *defAl = md->argumentList(); + const ArgumentList *declAl = md->declArgumentList(); + const ArgumentList *defAl = md->argumentList(); if (declAl && defAl && declAl->count()>0) { ArgumentListIterator declAli(*declAl); ArgumentListIterator defAli(*defAl); - Argument *a; + const Argument *a; for (declAli.toFirst();(a=declAli.current());++declAli) { - Argument *defArg = defAli.current(); + const Argument *defArg = defAli.current(); m_output.openHash(); if (!a->name.isEmpty()) @@ -1665,7 +1665,7 @@ void PerlModGenerator::generatePerlModForMember(const MemberDef *md,const Defini { m_output.openList("parameters"); ArgumentListIterator ali(*al); - Argument *a; + const Argument *a; for (ali.toFirst();(a=ali.current());++ali) { m_output.openHash() |