diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-02-29 11:45:07 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-02-29 11:45:07 (GMT) |
commit | 734702dc761ba40533cebf3cf405071cc9b8eb20 (patch) | |
tree | 1da07a79703bf31af47ec5e6de3a9237f82ba1b4 /src/docbookvisitor.h | |
parent | 89aeed4c32b75513760960e1edd930357d9e3a02 (diff) | |
download | Doxygen-734702dc761ba40533cebf3cf405071cc9b8eb20.zip Doxygen-734702dc761ba40533cebf3cf405071cc9b8eb20.tar.gz Doxygen-734702dc761ba40533cebf3cf405071cc9b8eb20.tar.bz2 |
Replace raw bool pointer array and counter by std::stack<bool>
Diffstat (limited to 'src/docbookvisitor.h')
-rw-r--r-- | src/docbookvisitor.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/docbookvisitor.h b/src/docbookvisitor.h index 47275f7..a338bbf 100644 --- a/src/docbookvisitor.h +++ b/src/docbookvisitor.h @@ -1,8 +1,6 @@ /****************************************************************************** * -* -* -* Copyright (C) 1997-2015 by Dimitri van Heesch. +* Copyright (C) 1997-2020 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby @@ -18,6 +16,8 @@ #ifndef _DOCBOOKDOCVISITOR_H #define _DOCBOOKDOCVISITOR_H +#include <stack> + #include "docvisitor.h" #include <qstack.h> #include <qlist.h> @@ -173,10 +173,12 @@ class DocbookDocVisitor : public DocVisitor //-------------------------------------- FTextStream &m_t; CodeOutputInterface &m_ci; - bool m_insidePre; - bool m_hide; - QStack<bool> m_enabled; + bool m_insidePre = false; + bool m_hide = false; + std::stack<bool> m_enabled; QCString m_langExt; + int m_colCnt = 0; + std::stack<bool> m_bodySet; // it is possible to have tables without a header, needs to be an array as we can have tables in tables }; #endif |