summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-10-27 11:55:16 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-10-27 11:55:16 (GMT)
commitc38a6fe88ceb3658ae4c09fa9550c770195d9401 (patch)
treefdb8fc8a81b7046b009a6058f8bd755073c4a1c3 /src/code.l
parent560bd4f390b6f5ed3146ddd3def583bd074c35b9 (diff)
downloadDoxygen-c38a6fe88ceb3658ae4c09fa9550c770195d9401.zip
Doxygen-c38a6fe88ceb3658ae4c09fa9550c770195d9401.tar.gz
Doxygen-c38a6fe88ceb3658ae4c09fa9550c770195d9401.tar.bz2
Changed ArgumentList to be an STL container
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/code.l b/src/code.l
index 9428432..46de92c 100644
--- a/src/code.l
+++ b/src/code.l
@@ -276,7 +276,7 @@ void VariableContext::addVariable(const QCString &type,const QCString &name)
// otherwise look for global class definitions
(varType=getResolvedClass(g_currentDefinition,g_sourceFileDef,typeName,0,0,TRUE,TRUE))
) && // and it must be a template
- varType->templateArguments())
+ !varType->templateArguments().empty())
{
newDef = varType->getVariableInstance( templateArgs );
}
@@ -679,14 +679,10 @@ static void addUsingDirective(const char *name)
static void setParameterList(const MemberDef *md)
{
g_classScope = md->getClassDef() ? md->getClassDef()->name().data() : "";
- const ArgumentList *al = md->argumentList();
- if (al==0) return;
- ArgumentListIterator it(*al);
- const Argument *a;
- for (;(a=it.current());++it)
- {
- g_parmName = a->name.copy();
- g_parmType = a->type.copy();
+ for (const Argument &a : md->argumentList())
+ {
+ g_parmName = a.name;
+ g_parmType = a.type;
int i = g_parmType.find('*');
if (i!=-1) g_parmType = g_parmType.left(i);
i = g_parmType.find('&');