The checkNode(p) call relies on p being non-null, so CodeChecker grumbled. In any case, we should be returning node_impl if we fall off the end of the structure (which shouldn't be possible, since we descended into the three and can't come back out on the way up without passing through node_impl, for which we check). Include a null-check in checkNode(), save the nsURI.isNull() check when !p->isElement() makes it redundant and fix some coding style nits while I'm about it. Amends commit 8609982791928a30a6d836b25810143a064f8c6f Coverity-Id: 474724 Coverity-Id: 474725 Coverity-Id: 474726 Change-Id: Id622a91d2e443276756e50729cf155b10f7164a1 Reviewed-by: Matthias Rauter <matthias.rauter@qt.io> (cherry picked from commit 82ae262de27534170060e61e8d1f4b045ae13fb8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%