diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2025-07-31 17:42:23 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2025-08-01 10:53:59 +0200 |
| commit | 9dbee225361bf8ade0c775c8dfa73e47f8f1ad63 (patch) | |
| tree | 973f9c5ba8cc60e7ee71b21812ceca356de917fa /src/gui/doc/snippets/code | |
| parent | 642d747f17f54d9d8ccb3e2721c8a00f8d4409bb (diff) | |
QLocale/Unix: enable -Wswitch in QSystemLocale::query()
The default: case label prevents the compiler from complaining about
unhandled enumerators in QueryType, of which there are six in this
case.
Add them explicitly and remove the default as a static assertion
(assuming -Werror=switch is enabled; which is the case at least for
-developer-build) that all enum values are handled.
Amends the start of the public history.
Found while fixing Coverity issue 455893.
Coverity-Id: 455893
Pick-to: 6.10 6.9 6.8 6.5
Change-Id: Ia9711422cb5495f3322d8ad4701cbb4f35755474
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions
