API review: Fix std::optional initializations


Use std::nullopt instead of {} to avoid potential
GCC -Wmaybe-uninitialized warnings.

Pick-to: 6.11
Change-Id: I9d3451de7e8bfc0b4e073b7b171b364a571165e8
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
commit026fe0db7e23ae66e8e826b7cc6e849d986c2d6a
parent004c342155c40502f65929e7dc9ae06a63b392e6
authorJarek Kobus <jaroslaw.kobus@qt.io>
committerJarek Kobus <jaroslaw.kobus@qt.io>
commit timeMon, 26 Jan 2026 12:28:56 +0100