summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-09-05 17:41:33 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-09-05 17:41:33 (GMT)
commit08d093bb010513d1559e112d8f163280e27d1fc8 (patch)
tree05bffceca7a3296b74b3254dfaff683a1348b095 /src/code.l
parent214b94e3568867344b87c4266cb96d3f0dfe828a (diff)
downloadDoxygen-08d093bb010513d1559e112d8f163280e27d1fc8.zip
Doxygen-08d093bb010513d1559e112d8f163280e27d1fc8.tar.gz
Doxygen-08d093bb010513d1559e112d8f163280e27d1fc8.tar.bz2
Compilation fixed for code.l (part 2)
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 9889d56..ea02716 100644
--- a/src/code.l
+++ b/src/code.l
@@ -2325,7 +2325,7 @@ void VariableContext::addVariable(yyscan_t yyscanner,const QCString &type,const
if (varType)
{
DBG_CTX((stderr,"** addVariable type='%s' name='%s'\n",ltype.data(),lname.data()));
- scope->emplace(std::make_pair(lname,varType)); // add it to a list
+ scope->emplace(std::make_pair(lname.str(),varType)); // add it to a list
}
else if ((i=ltype.find('<'))!=-1)
{
@@ -2352,7 +2352,7 @@ void VariableContext::addVariable(yyscan_t yyscanner,const QCString &type,const
if (newDef)
{
DBG_CTX((stderr,"** addVariable type='%s' templ='%s' name='%s'\n",typeName.data(),templateArgs.data(),lname.data()));
- scope->emplace(std::make_pair(lname, newDef));
+ scope->emplace(std::make_pair(lname.str(), newDef));
}
else
{
@@ -2367,7 +2367,7 @@ void VariableContext::addVariable(yyscan_t yyscanner,const QCString &type,const
// TODO: make this work for namespaces as well!
{
DBG_CTX((stderr,"** addVariable: dummy context for '%s'\n",lname.data()));
- scope->emplace(std::make_pair(lname,dummyContext));
+ scope->emplace(std::make_pair(lname.str(),dummyContext));
}
else
{