diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2025-07-31 17:31:22 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2025-07-31 23:06:00 +0200 |
| commit | 66cc853035dfbbed213657511d6653adbd85bcdf (patch) | |
| tree | f73b37c86daac8c52ad527b4d740e925b81d2230 /src/gui/doc/snippets/textdocument-end/textdocumentendsnippet.cpp | |
| parent | e462567183c3791afbbab40a7d90513c3d283ae6 (diff) | |
QLocale/Unix: fix Coverity complaint re: "logically dead code"
Coverity (rightfully) points out that LocaleChange was aleady handled
before the switch statement and so the `case LocaleChange:` is dead
code. It does not realize that the Q_ASSERT(false) is meant to mean
"unreachable".
Attempt to fix by using The Real Dealâ„¢, ie. Q_UNREACHABLE().
Coverity-Id: 455893
Pick-to: 6.10 6.9 6.8 6.5
Change-Id: I134256eb1b683e18dc0c1770df2601aae1eaf7e3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-end/textdocumentendsnippet.cpp')
0 files changed, 0 insertions, 0 deletions
