summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qtimer.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2024-09-02 18:31:30 +0200
committerAhmad Samir <a.samirh78@gmail.com>2024-09-03 07:51:01 +0000
commit29dfcc240b3e29d5d6149c2996cfdb9d71b776bb (patch)
tree55cf59f014f4a139a2cb80d0f351ee1cd332fd45 /src/corelib/kernel/qtimer.cpp
parentfd89fc8c27460e2c11d9e3decc38cf61c186f984 (diff)
QDirListing: make const_iterator move-only
The std::input_iterator concept does not require copyable, only movable. This makes handling input_iterators safer, because copies of input iterators since advanced zap into partially-formed state without changing their bit pattern. If the iterator is, however, only movable, no such zapping copies can exist. Take advantage of this and make QDirListing::const_iterator move-only. Its iterators are anyway no longer compatible with classical STL algorithms, so we're not restricting their use further. Found in API review. Task-number: QTBUG-125512 Pick-to: 6.8 Change-Id: Ic1dee22881893fdbf159bbfd335c10505eaffa9f Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src/corelib/kernel/qtimer.cpp')
0 files changed, 0 insertions, 0 deletions