diff options
author | Ahmad Samir <[email protected]> | 2023-10-16 22:19:57 +0300 |
---|---|---|
committer | Ahmad Samir <[email protected]> | 2023-10-18 03:05:55 +0300 |
commit | ba0b4a1dc83a33238fd33fb6997d95483e7ff5f6 (patch) | |
tree | 48bde5699e5eed695e2ce76b82fbbd57bcb3e2e1 | |
parent | dec72d165be9470ef8fa46901260fa1dc32d8568 (diff) |
QGraphicsAnchorLayout: remove a redundant member container
The m_children container isn't used at all, so remove it. Spotted by
Volker Hilsheimer.
Change-Id: I79db1f77c0e4caf8ebab1573a82e07396a6a806b
Reviewed-by: Christian Ehrlicher <[email protected]>
-rw-r--r-- | src/widgets/graphicsview/qgraphicsanchorlayout_p.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widgets/graphicsview/qgraphicsanchorlayout_p.h b/src/widgets/graphicsview/qgraphicsanchorlayout_p.h index 96a408be380..880e262d348 100644 --- a/src/widgets/graphicsview/qgraphicsanchorlayout_p.h +++ b/src/widgets/graphicsview/qgraphicsanchorlayout_p.h @@ -155,19 +155,20 @@ inline QString AnchorData::toString() const struct SequentialAnchorData : public AnchorData { SequentialAnchorData(const QList<AnchorVertex *> &vertices, const QList<AnchorData *> &edges) - : AnchorData(), m_children(vertices), m_edges(edges) + : AnchorData(), m_edges(edges) { type = AnchorData::Sequential; isVertical = m_edges.at(0)->isVertical; #ifdef QT_DEBUG name = QString::fromLatin1("%1 -- %2").arg(vertices.first()->toString(), vertices.last()->toString()); +#else + Q_UNUSED(vertices); #endif } virtual void updateChildrenSizes() override; void calculateSizeHints(); - QList<AnchorVertex *> m_children; // list of vertices in the sequence const QList<AnchorData *> m_edges; // keep the list of edges too. }; |