aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/level0/README-mutable-container-key.md
blob: 1c87c0174ba845d62540e473fcd32c8f266a6167 (plain)
1
2
3
4
5
# mutable-container-key

Looks for `QMap` or `QHash` having key types which can be modified due to external factors.
The key's value should never change, as it's needed for sorting or hashing, but with some types, such as non-owning smart pointers it might happen.
The supported key types are: `QPointer`, `QWeakPointer`, `weak_ptr` and `QPersistentModelIndex`.