diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2019-06-15 17:49:21 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2019-06-27 20:00:21 +0200 |
| commit | e36e32c21312eee42194815da82203648023a67b (patch) | |
| tree | 6076697b35bf6fb9ab6f199430dc2bab785c02fa /src/tools/uic/cpp/cppwriteinitialization.cpp | |
| parent | 8da3eea4fb702c2dc369c1628e91a034569aa9f0 (diff) | |
QBearerEngine: fix const-correctness of a loop with const-propagating QESDP
The loop iterates over a collection of QExplicitSharedDataPointer, which
traditionally doesn't propagate const. In Qt 6, it will, so prepare the
code for this change, by taking the loop variable by non-const reference.
Since the loop is followed by container.clear(), make it a consume-loop
by looping over qExchange(container, {}).
Change-Id: If12ab005544183598fd76a0c486b2df1582710d5
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions
