diff options
author | Tatiana Borisova <[email protected]> | 2024-12-11 10:10:52 +0100 |
---|---|---|
committer | Tatiana Borisova <[email protected]> | 2024-12-12 14:27:14 +0000 |
commit | d991572a45b2bbdcd43e59586f88487837a2927c (patch) | |
tree | 60a62db0012da24996beaca7936ceee2f6613fa1 | |
parent | 73221d263823d50e525858d613ce93769698454a (diff) |
[QDomNodePrivate] delete unnecessary pointer check from the statement
- prev pointer never can be null here, so the check can be deleted.
Ammends 948599e7b71f59fd9c9c0f7f3d1987ec93a23490
Pick-to: 6.8 6.9
Change-Id: Ie194f5f0432f6da5f6471328193112c970f623b6
Reviewed-by: Edward Welbourne <[email protected]>
-rw-r--r-- | src/xml/dom/qdom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp index e1a4a36aa08..3ef7bbe3e85 100644 --- a/src/xml/dom/qdom.cpp +++ b/src/xml/dom/qdom.cpp @@ -1445,7 +1445,7 @@ void QDomNodePrivate::saveSubTree(const QDomNodePrivate *n, QTextStream &s, const QDomNodePrivate *prev = root; root = root->next; // Close QDomElementPrivate groups - while (!root && prev && (layerDepth > 0)) { + while (!root && (layerDepth > 0)) { root = prev->parent(); layerDepth --; root->afterSave(s, layerDepth + branchDepth, indent); |