summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qguivariant.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2020-03-31 22:14:40 +0200
committerMarc Mutz <marc.mutz@kdab.com>2020-06-06 13:43:04 +0200
commitccbf6ae0bbddff0001c7810934c8f15a8f50c2bb (patch)
treecb0557dc7fc7a3a0b34bffd5bd8fc907060e23b4 /src/gui/kernel/qguivariant.cpp
parent1f80d1a5eb954856c29be75e77aad267b59ab3d0 (diff)
QDir: port from QStringRef/split() to QStringView/tokenize()
Port away from random-access of the returned sequences. That's neither necessary nor does it make the code more readable than the alternative single-pass implementation used here. As a drive-by, make applying NRVO more likely by re-using the `result` variable for all returns after its declaration. Change-Id: I2c3bbaefa6b6f08ebf0b90fb7be62e3c6243f19d Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/kernel/qguivariant.cpp')
0 files changed, 0 insertions, 0 deletions