mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 23:05:34 +08:00
Suppressed clazy false positive: qHash namespace.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user