Skip to content

QObjectPrivate::Signal: initialize all members

A recent change in that area triggered Clang-SA to rescan the code and complain about this pre-existing bug: If receiver == nullptr, then the previous member was never initialized.

Fix by null'ing it using NSDMI. This is a trivial type, the compiler will be able to avoid the redundant write.

Amends ab92b9e4(!).

Pick-to: 6.7 6.6 6.5 6.2 5.15 Change-Id: Ideed71f0f36d5f896fb6a4614f233757c1371ee3 Reviewed-by: David Faure Reviewed-by: Edward Welbourne (cherry picked from commit 40714c1d)

Merge request reports