diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-07-20 09:25:21 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2025-06-22 10:43:20 -0700 |
commit | 131da3b171a52fc2ab4d038dae0f783a46d307ea (patch) | |
tree | 42065872532b57fc53d243d27f7458b69136dbb1 /src/tools/uic/cpp/cppwriteinitialization.cpp | |
parent | 17f7938657e2ef919e8d89d28a5bfa610218eb3b (diff) |
QMetaType: use nothrow operator new
We handle the memory allocation ourselves. Using std::nothrow_t{}
instead of std::nothrow to avoid referring to an empty, global variable
unnecessarily just to call this function.
[ChangeLog][QtCore][QMetaType] create() will return a null pointer and
not throw if a memory allocation failure happens. It may still throw if
the constructor of the meta type in question throws.
Change-Id: I3859764fed084846bcb0fffd170396477b2b4989
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions