diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-08 10:18:56 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-08 10:18:56 (GMT) |
commit | 6d4835dbe01a27923db8a1e4559b61da5065cb7a (patch) | |
tree | 9369a394c03978c79e20ec905cbd892e27fabdd6 /src/vhdljjparser.h | |
parent | 4a4fcdf7931efba208a57b658185de689f2ef7fb (diff) | |
download | Doxygen-6d4835dbe01a27923db8a1e4559b61da5065cb7a.zip Doxygen-6d4835dbe01a27923db8a1e4559b61da5065cb7a.tar.gz Doxygen-6d4835dbe01a27923db8a1e4559b61da5065cb7a.tar.bz2 |
Changed std::unique_ptr<Entry> to std::shared_ptr<Entry> at avoid use after free issues
Diffstat (limited to 'src/vhdljjparser.h')
-rw-r--r-- | src/vhdljjparser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhdljjparser.h b/src/vhdljjparser.h index faa0c08..f987e4a 100644 --- a/src/vhdljjparser.h +++ b/src/vhdljjparser.h @@ -47,7 +47,7 @@ class VHDLOutlineParser : public OutlineParserInterface void finishTranslationUnit() {} void parseInput(const char * fileName, const char *fileBuf, - const std::unique_ptr<Entry> &root, + const std::shared_ptr<Entry> &root, bool sameTranslationUnit, QStrList &filesInSameTranslationUnit); @@ -82,6 +82,6 @@ struct VhdlConfNode void vhdlscanFreeScanner(); const QList<VhdlConfNode>& getVhdlConfiguration(); -const std::vector<std::unique_ptr<Entry> >&getVhdlInstList(); +const std::vector<std::shared_ptr<Entry> >&getVhdlInstList(); #endif |