diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-08-09 18:55:22 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-08-24 14:08:14 (GMT) |
commit | 0815bb7d5c99fccdbdba24fb933f9e7fce29bbc6 (patch) | |
tree | f3af0df1bd26f367220386ab4e011a27c9b341fd /src/filedef.cpp | |
parent | 8b3efba55c297d9af5274bf525e53417b78e8be3 (diff) | |
download | Doxygen-0815bb7d5c99fccdbdba24fb933f9e7fce29bbc6.zip Doxygen-0815bb7d5c99fccdbdba24fb933f9e7fce29bbc6.tar.gz Doxygen-0815bb7d5c99fccdbdba24fb933f9e7fce29bbc6.tar.bz2 |
Refactoring: OutputList & OutputGen
- Initialized member variables inside the class
- Added copy & assign operators for OutputGenerator and Derived classes.
- throw a runtime exception when OutputGenerator is copied while is file
is still in progress.
- Added clone method to make a copy of OutputList.
- Moved the implementation of enable() & disable() and friend into
OutputGen instead of having the same implementation in each derived
class.
- Made m_dir and m_fileName readonly (members dir() and fileName())
- Removed call to new while adding generators to OutputList
- Replaced QStack by std::stack for the "enabled" state.
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r-- | src/filedef.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp index 15fd1e5..f07201d 100644 --- a/src/filedef.cpp +++ b/src/filedef.cpp @@ -1151,11 +1151,11 @@ void FileDefImpl::writeQuickMemberLinks(OutputList &ol,const MemberDef *currentM /*! Write a source listing of this file to the output */ void FileDefImpl::writeSource(OutputList &ol,ClangTUParser *clangParser) { - static bool generateTreeView = Config_getBool(GENERATE_TREEVIEW); - static bool filterSourceFiles = Config_getBool(FILTER_SOURCE_FILES); - static bool latexSourceCode = Config_getBool(LATEX_SOURCE_CODE); - static bool docbookSourceCode = Config_getBool(DOCBOOK_PROGRAMLISTING); - static bool rtfSourceCode = Config_getBool(RTF_SOURCE_CODE); + bool generateTreeView = Config_getBool(GENERATE_TREEVIEW); + bool filterSourceFiles = Config_getBool(FILTER_SOURCE_FILES); + bool latexSourceCode = Config_getBool(LATEX_SOURCE_CODE); + bool docbookSourceCode = Config_getBool(DOCBOOK_PROGRAMLISTING); + bool rtfSourceCode = Config_getBool(RTF_SOURCE_CODE); DevNullCodeDocInterface devNullIntf; QCString title = m_docname; if (!m_fileVersion.isEmpty()) |