diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2022-04-01 09:15:20 +0200 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-04-06 10:44:40 +0000 |
| commit | 18eaf729917f5ac3638d374d3cbc44e3fc2fa0c0 (patch) | |
| tree | 89ea68e5de695cd45e7f81b3ba06a35f154a59aa /src/corelib/io/qbuffer.cpp | |
| parent | 0c1f9ab36b2611066cb5d08472d9a812ac7e4014 (diff) | |
QSettings: fix a misleading comment
Destructors in C++ are implicitly noexcept, so the try-catch around
QSettingsPrivate::flush() is not to prevent throwing from a dtor
(anymore), but to prevent a throw statement inside flush() from taking
down the whole application.
We don't need to care about abi::__forced_unwind here, since we
couldn't re-throw it even if we wanted to (throw in noexcept function
is direct std::terminate(); at least by not re-throwing, the user will
get a nice complaint message from the runtime).
Pick-to: 6.3
Change-Id: I3b24a4be9aeb74637a58725540990b535d005bdd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qbuffer.cpp')
0 files changed, 0 insertions, 0 deletions
