summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-10-13 21:53:12 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-10-13 21:53:12 (GMT)
commit79f6a43c5fbd1f28f2fbdaa642cf42a0079b5be6 (patch)
tree0e2b6137d67b3d6a2acef5aff30eb1ff28d83536 /src/scanner.l
parentd2b8ae16cb99621827f5dd860222c27e629f5a7f (diff)
downloadDoxygen-79f6a43c5fbd1f28f2fbdaa642cf42a0079b5be6.zip
Doxygen-79f6a43c5fbd1f28f2fbdaa642cf42a0079b5be6.tar.gz
Doxygen-79f6a43c5fbd1f28f2fbdaa642cf42a0079b5be6.tar.bz2
Fix lifetime issue for Entry objects.
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scanner.l b/src/scanner.l
index fe20543..4ed4a62 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -5305,9 +5305,9 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
else
{
current->endBodyLine=yyLineNr;
-
+ // take previous out of current_root and move it into current
current.swap(tempEntry); // remember current
- current.reset(previous); // and temporarily switch to the previous entry
+ current_root->moveFromSubEntry(previous,current);
previous = 0;
docBlockContext = SkipCurlyEndDoc;