summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qurl.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2019-05-25 08:58:00 +0200
committerMarc Mutz <marc.mutz@kdab.com>2019-06-13 22:12:00 +0200
commitc4a94edbbc3a59d955bf2721e51b1448d00e0483 (patch)
tree8d98c9624080376d822db656338618de8eb8943d /src/corelib/io/qurl.cpp
parent6faa4d4a87662a6254542da37b3a6fff528e0a6c (diff)
QMessagePattern: replace manual memory handling with std::unique_ptr
Dealing with 'tokens' is straight-forward. With 'literals', it is not quite so straight-forward, because the ownership chain here is two levels deep. But it's still worthwhile, because it replaces quite error-prone code with code which may be a bit more verbose, but is totally safe. As a drive-by, moved initialization of the fromEnvironment member to the body of the ctor in order to avoid code-churn (I needed to touch the ctor-init-list anyway). The QMessagePattern dtor is now empty and consequently defaulted. Change-Id: Iadb25e7aba1c5a94fd9068be7ae03f17e975328b Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/io/qurl.cpp')
0 files changed, 0 insertions, 0 deletions