diff options
author | Luca Di Sera <luca.disera@qt.io> | 2022-09-23 12:03:21 +0200 |
---|---|---|
committer | Luca Di Sera <luca.disera@qt.io> | 2022-09-23 16:13:36 +0200 |
commit | 9030ccaa8668e6bba14a38b294d502d2b9cf6cac (patch) | |
tree | bfa5e78bfbdf59ba42eb79745c193854e6f6e3cb | |
parent | 94c25f9c164cdfa8592e09e890c425a12cc99fd9 (diff) |
QDoc: Move `sortName` out of `Section`
`Section::sortName` is an internal method that is used to generate
sortable identifiers for `Node`s that are partitioned by a `Section`.
The method is currently private under `Section` but does not use any
internal state of `Section`, simply requiring any `Node` input.
Hence, the method was removed from `Section`'s interface in favor of
being a free-function visible only in the implementation file.
Change-Id: Ifa1be8a081edb2d31ddbeb7bcd41205191a18d51
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
-rw-r--r-- | src/qdoc/sections.cpp | 2 | ||||
-rw-r--r-- | src/qdoc/sections.h | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/qdoc/sections.cpp b/src/qdoc/sections.cpp index 452295940..20d7fddab 100644 --- a/src/qdoc/sections.cpp +++ b/src/qdoc/sections.cpp @@ -160,7 +160,7 @@ void Section::clear() Construct a name for the \a node that can be used for sorting a set of nodes into equivalence classes. */ -QString Section::sortName(const Node *node) +QString sortName(const Node *node) { QString nodeName{node->name()}; diff --git a/src/qdoc/sections.h b/src/qdoc/sections.h index 729b26788..ce30afc3a 100644 --- a/src/qdoc/sections.h +++ b/src/qdoc/sections.h @@ -74,9 +74,6 @@ public: void setAggregate(Aggregate *t) { m_aggregate = t; } private: - QString sortName(const Node *node); - -private: QString m_title {}; QString m_singular {}; QString m_plural {}; |