QDoc: Assert pointer before use
Coverity flagged a reverse null check: `function_declaration` is
dereferenced on all paths leading to the null test. Replace the redundant
check with `Q_ASSERT(function_declaration)` and call
`isThisDeclarationADefinition()` unconditionally.
Coverity-Id: 900510
Change-Id: I2f2c1fcf0574231a0a3d17d25e1c90bce65be03d
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
| commit | 812cc3536b5be26de1bc247b40405797af1a8c21 |
| parent | d84f37c90b541cdcd66bfa62598f3e9932bcea47 |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Tue, 17 Feb 2026 14:29:16 +0100 |