summaryrefslogtreecommitdiffstats
path: root/src/qdoc/webxmlgenerator.h
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2020-01-03 23:10:47 +0100
committerTopi Reinio <topi.reinio@qt.io>2020-01-13 10:30:34 +0100
commitccdbf30b6ac9180ead6fc22c858b6fac112d493c (patch)
tree684348bac8eae2acffe5c78545a608bbee9c62a9 /src/qdoc/webxmlgenerator.h
parentade15563a6c7613b58201e6e05e3f67fde3f6056 (diff)
qdoc: Make Config a singleton
There is no need to pass a pointer to Config throughout the API; the only instance of it is created in main() so we can turn it into a singleton. Having access to Config without API changes makes implementation of configurable features easier. Change-Id: Ida47e067865082dfe036a7a97f7f1ffc736db346 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/qdoc/webxmlgenerator.h')
-rw-r--r--src/qdoc/webxmlgenerator.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qdoc/webxmlgenerator.h b/src/qdoc/webxmlgenerator.h
index 71fd9df24..f8b3fa80e 100644
--- a/src/qdoc/webxmlgenerator.h
+++ b/src/qdoc/webxmlgenerator.h
@@ -30,7 +30,6 @@
#define WEBXMLGENERATOR_H
#include "codemarker.h"
-#include "config.h"
#include "htmlgenerator.h"
#include "qdocindexfiles.h"
@@ -44,7 +43,7 @@ class WebXMLGenerator : public HtmlGenerator, public IndexSectionWriter
public:
explicit WebXMLGenerator() {}
- void initializeGenerator(const Config &config) override;
+ void initializeGenerator() override;
void terminateGenerator() override;
QString format() override;
// from IndexSectionWriter