Suppressed clazy false positive: qHash namespace.

This commit is contained in:
Mat Sutcliffe
2018-12-17 16:46:57 +00:00
parent 8979b5257e
commit 20d4575c55
3 changed files with 3 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ namespace BlackMisc
}
//! Simplifies composition, returns 0 for performance
friend uint qHash(const Derived &) { return 0; }
friend uint qHash(const Derived &) { return 0; } // clazy:exclude=qhash-namespace
//! \copydoc BlackMisc::Mixin::JsonByMetaClass::toJson
QJsonObject toJson() const

View File

@@ -487,7 +487,7 @@ namespace BlackMisc
{
public:
//! qHash overload, needed for storing value in a QSet.
friend uint qHash(const Derived &value, uint seed = 0)
friend uint qHash(const Derived &value, uint seed = 0) // clazy:exclude=qhash-namespace
{
return ::qHash(hashImpl(value), seed);
}

View File

@@ -214,7 +214,7 @@ namespace BlackMisc
uint getValueHash() const;
//! \copydoc CValueObject::qHash
friend uint qHash(const PQ &pq) { return pq.getValueHash(); }
friend uint qHash(const PQ &pq) { return pq.getValueHash(); } // clazy:exclude=qhash-namespace
//! \copydoc BlackMisc::Mixin::JsonByMetaClass::toJson
QJsonObject toJson() const;