diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2018-10-21 16:01:26 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2018-12-10 21:15:09 +0000 |
commit | 177577932e89772ef7ab281dd5771d5c66ad3a93 (patch) | |
tree | cb53bf73d08d83bacbc106a80769ccfe845ef723 /tests/testserver | |
parent | b688c7e99a8def9db836d1d6ab7388ae14a5d5b0 (diff) |
qwindowsxpstyle: Add std::nothrow to new
There is no sense in testing the 'buf' pointer against null, as the
memory was allocated using the throwing 'new' operator. However, since
this function already can fail in other cases, the 'buf' pointer can be
checked for nullptr after the nothrow new.
Task-number: QTBUG-71156
Change-Id: Ibca5d672544d3980dd8890474e3e2fbf7443e05d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/testserver')
0 files changed, 0 insertions, 0 deletions