summaryrefslogtreecommitdiffstats
path: root/src/qdoc/openedlist.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2018-04-25 10:40:25 +0200
committerMartin Smith <martin.smith@qt.io>2018-06-01 12:14:26 +0000
commit8ad79b032432be398f8f2a8107131ba19eff7ff4 (patch)
tree311f5290f84b48ec6359c96ba1b00bb6c906f7bd /src/qdoc/openedlist.cpp
parent03b8f9d935ec0c4227c02fee1b73db037cc1932a (diff)
qdoc: Refactor section construction
qdoc outputs a standard list of sections for C++ classes, namespaces, header files, etc, and for QML types. The code for constructing the lists of section data structures was include in the CodeMarker class hierarchy, but it should not have been located there because it doesn't have anything to do with documentation markup. The result was that the CodeMarker classes (CodeMarker & CppCodeMarker) contained many member functions that should have been isolated in separate classes. This update creates those separate classes and refactors CodeMarker and CppCodeMarker by removing the classes used for creating the lists of sections into a separate Sections class. This refactoring not only makes the code cleaner, it also enables implementation of the custom sections idea described in QTBUG-45725. There is a lot more work to be done for this task. Change-Id: I950a78aa31c6b5f206854efa16363b992e9bfea5 Task-number: QTBUG-45725 Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/qdoc/openedlist.cpp')
-rw-r--r--src/qdoc/openedlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/openedlist.cpp b/src/qdoc/openedlist.cpp
index 99a8ec827..79a0e8a63 100644
--- a/src/qdoc/openedlist.cpp
+++ b/src/qdoc/openedlist.cpp
@@ -39,7 +39,7 @@ QT_BEGIN_NAMESPACE
static const char roman[] = "m\2d\5c\2l\5x\2v\5i";
-OpenedList::OpenedList( Style style )
+OpenedList::OpenedList( ListStyle style )
: sty( style ), ini( 1 ), nex( 0 )
{
}