Example code related to QHash::erase() yields a clazy warning:
I have tested 2 examples:
- 3rd example in the following section: https://doc.qt.io/qt-6/qhash-iterator.html#details
- Example in the following section: https://doc.qt.io/qt-6/qhash.html#erase
I haven't tested further examples related to QHash::erase() but it may be the case there too.
It may also be the case with erase() for other containers.
Is this an issue with the documentation or should there be a constructor of the following form?