diff options
author | Tasuku Suzuki <[email protected]> | 2025-08-08 22:32:35 +0900 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2025-08-20 10:24:56 +0000 |
commit | 1c26d20b3f87a3b59eb6eb12a00c17d35df736f1 (patch) | |
tree | c279809e317e69ed07252e249edaa1452922e499 /src/network/ssl/qsslconfiguration.h | |
parent | 7a1e7c88f087a1ccc7b6309c3a8e72376cbd37b6 (diff) |
Remove unnecessary platform guards that caused inconsistencies between
header and implementation files:
1. Remove dead code for operator+=(const QRect&) that was guarded by
#if !defined(Q_OS_UNIX) && !defined(Q_OS_WIN)
This condition is never true since all platforms define either
Q_OS_UNIX or Q_OS_WIN. Even if such an environment existed,
this fallback implementation would work, but the build would fail
anyway due to missing implementations of QRegionPrivate and core
constructors that are incorrectly guarded by the opposite condition.
2. Remove #if defined(Q_OS_UNIX) || defined(Q_OS_WIN) guard around
QRegionPrivate and related implementations (lines 1066-4320).
This condition is always true, but the header file declares these
unconditionally. If this guard were false, it would cause linker
errors for all QRegion constructors and methods.
These changes ensure header and implementation files are consistent
and eliminate dead code.
Pick-to: 6.10 6.9 6.8
Change-Id: Ibd3caddfd68273a091b11d0a40909d0e44eb6947
Reviewed-by: Marc Mutz <[email protected]>
Diffstat (limited to 'src/network/ssl/qsslconfiguration.h')
0 files changed, 0 insertions, 0 deletions