diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2025-01-07 23:36:17 -0300 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2025-01-16 16:05:19 -0800 |
| commit | b86bcf5c25d0072300a8b0a4b5cfe942cabf53ad (patch) | |
| tree | c31f35a6d7c61718131c0a1fe45ae742232951f2 /src/corelib/tools/qcommandlineparser.cpp | |
| parent | c9ca74660b171534c6f2a2d79672290d17312fb1 (diff) | |
QMessagePattern: add Q_ASSERT to setDefaultPattern() and improve codegen
Amends commit e04f109456bbcb184963b8ed71944b958b35c201.
This function does not free the pointers stored in literals, so add a
couple of assertions to indicate that it's only safe to call from the
constructor. And that being the case, we can update the tokens
unique_ptr in two steps, which makes the compiler not attempt to call
delete[] on the previous pointer.
Pick-to: 6.9
Change-Id: Ibe76a7df795e9c6d6191fffdf45e3b3ef6f0f344
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
0 files changed, 0 insertions, 0 deletions
