diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-01-16 20:14:16 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-01-22 20:45:20 (GMT) |
commit | 302ea696fae93d7f05cf0f68ce3017cd8b7c4952 (patch) | |
tree | 7e2948659099ed832d32bfd494adaf3f158a3fd2 /src/mandocvisitor.h | |
parent | 31755d65806fda34a9b5f6b40dbfec54978d5b99 (diff) | |
download | Doxygen-302ea696fae93d7f05cf0f68ce3017cd8b7c4952.zip Doxygen-302ea696fae93d7f05cf0f68ce3017cd8b7c4952.tar.gz Doxygen-302ea696fae93d7f05cf0f68ce3017cd8b7c4952.tar.bz2 |
Refactoring: move Doc*Visitor::push/popEnabled
New class & name: DocVisitor::push/popHidden
Diffstat (limited to 'src/mandocvisitor.h')
-rw-r--r-- | src/mandocvisitor.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/mandocvisitor.h b/src/mandocvisitor.h index fa65424..7c5dc8d 100644 --- a/src/mandocvisitor.h +++ b/src/mandocvisitor.h @@ -1,13 +1,13 @@ /****************************************************************************** * - * + * * * * Copyright (C) 1997-2015 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 - * granted. No representations are made about the suitability of this software + * documentation under the terms of the GNU General Public License is hereby + * granted. No representations are made about the suitability of this software * for any purpose. It is provided "as is" without express or implied warranty. * See the GNU General Public License for more details. * @@ -20,7 +20,6 @@ #define _MANDOCVISITOR_H #include "docvisitor.h" -#include <qstack.h> #include <qcstring.h> class FTextStream; @@ -31,11 +30,11 @@ class ManDocVisitor : public DocVisitor { public: ManDocVisitor(FTextStream &t,CodeOutputInterface &ci,const char *langExt); - + //-------------------------------------- // visitor functions for leaf nodes //-------------------------------------- - + void visit(DocWord *); void visit(DocLinkedWord *); void visit(DocWhiteSpace *); @@ -57,7 +56,7 @@ class ManDocVisitor : public DocVisitor //-------------------------------------- // visitor functions for compound nodes //-------------------------------------- - + void visitPre(DocAutoList *); void visitPost(DocAutoList *); void visitPre(DocAutoListItem *); @@ -140,13 +139,10 @@ class ManDocVisitor : public DocVisitor private: //-------------------------------------- - // helper functions + // helper functions //-------------------------------------- - - void filter(const char *str); - void pushEnabled(); - void popEnabled(); + void filter(const char *str); //-------------------------------------- // state variables @@ -158,7 +154,6 @@ class ManDocVisitor : public DocVisitor bool m_hide; bool m_firstCol; int m_indent; - QStack<bool> m_enabled; QCString m_langExt; }; |