diff options
author | Levon Sargsyan <levon.sargsyan@qt.io> | 2019-11-13 16:16:46 +0100 |
---|---|---|
committer | levon.sargsyan <levon.sargsyan@qt.io> | 2019-12-04 17:00:45 +0100 |
commit | c8883b59cd2289ef99fa4b912bfa7ff0005242e1 (patch) | |
tree | 2edf78079401115ffbe19a0a83a1e11d43abc25e | |
parent | 619a3d00fee89223d8ce19435dfde9140daf00b4 (diff) | |
download | qttools-c8883b59cd2289ef99fa4b912bfa7ff0005242e1.tar.gz |
Remove "Node" header dependency from the "Generator"
Change substitutes Node header dependency on Generator with forward-declaration.
This doesn't break any functionality since the header of Generator
references only Node pointers.
Aim of such change is aligned with the strategy of breaking down any
unnecessary dependencies in the code to make qdoc unit-testable.
Change-Id: Ia2ef2f2fb62a1435bffeda1f1b389a3079ac12b0
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r-- | src/qdoc/generator.cpp | 1 | ||||
-rw-r--r-- | src/qdoc/generator.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/qdoc/generator.cpp b/src/qdoc/generator.cpp index dde1de496..f68fcf394 100644 --- a/src/qdoc/generator.cpp +++ b/src/qdoc/generator.cpp @@ -36,6 +36,7 @@ #include "doc.h" #include "editdistance.h" #include "loggingcategory.h" +#include "node.h" #include "openedlist.h" #include "qdocdatabase.h" #include "quoter.h" diff --git a/src/qdoc/generator.h b/src/qdoc/generator.h index fe79fd77e..24fd5bb48 100644 --- a/src/qdoc/generator.h +++ b/src/qdoc/generator.h @@ -29,7 +29,6 @@ #ifndef GENERATOR_H #define GENERATOR_H -#include "node.h" #include "text.h" #include <QtCore/qlist.h> @@ -46,6 +45,7 @@ typedef QMap<Node *, NodeMultiMap> ParentMaps; class Config; class CodeMarker; class Location; +class Node; class QDocDatabase; class Generator |