From 19d95ebd10dffc8cbec3b926c3fd2a7204cef356 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 29 Nov 2021 01:28:07 +0800 Subject: [PATCH] Add comment for qHash implementation requirements As clazy report false-positive on this. --- src/base/bittorrent/ltqhash.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/base/bittorrent/ltqhash.h b/src/base/bittorrent/ltqhash.h index 668aaa850..ad0625c62 100644 --- a/src/base/bittorrent/ltqhash.h +++ b/src/base/bittorrent/ltqhash.h @@ -34,6 +34,9 @@ #include +// From https://doc.qt.io/qt-6/qhash.html#the-hashing-function: +// A hashing function for a key type K may be provided in two different ways. +// The first way is by having an overload of qHash() in K's namespace. namespace libtorrent { namespace aux