diff options
Diffstat (limited to 'docs/checks/README-qmap-with-pointer-key.md')
-rw-r--r-- | docs/checks/README-qmap-with-pointer-key.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/checks/README-qmap-with-pointer-key.md b/docs/checks/README-qmap-with-pointer-key.md new file mode 100644 index 00000000..6fe5ed96 --- /dev/null +++ b/docs/checks/README-qmap-with-pointer-key.md @@ -0,0 +1,7 @@ +# qmap-with-pointer-key + +Finds cases where you're using `QMap<K,T>` and K is a pointer. + +`QMap` has the particularity of sorting it's keys, but sorting by memory +address makes no sense. +Use `QHash` instead, which provides faster lookups. |