summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qnativesocketengine_unix.cpp
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2023-10-03 13:13:16 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2023-10-07 00:10:32 +0200
commit51c812af0747573ccf07fc232d860170c4ba2877 (patch)
tree58fc61fdb9a74b19a9534a3e9e07cc9dc9e3fa92 /src/network/socket/qnativesocketengine_unix.cpp
parent72d51f1c42b83c26d15cb626f1b22905fbbea474 (diff)
QHttpThreadDelegate: use new(std::nothrow) instead of try..catch
We usually compile without exceptions, so the try..catch is a noop. So, if the `new` fails we would crash (or get UB) anyway. Instead of that, use the nothrow version of `new` and check the result. Pick-to: 6.6 6.5 Change-Id: I1902b717c70afcc44c1f3237370aae346262452a Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/network/socket/qnativesocketengine_unix.cpp')
0 files changed, 0 insertions, 0 deletions