refs #413 Decomposed hash-related functions of CValueObject into Mixin::HashByTuple.

This commit is contained in:
Mathew Sutcliffe
2015-04-29 01:31:19 +01:00
parent d9faa031d2
commit 2f55caf7c6
11 changed files with 67 additions and 35 deletions

View File

@@ -118,8 +118,8 @@ namespace BlackMisc
//! \copydoc CValueObject::convertFromQVariant
virtual void convertFromQVariant(const QVariant &variant) override { BlackMisc::setFromQVariant< C<T> >(&derived(), variant); }
//! \copydoc BlackMisc::CValueObject::getValueHash
virtual uint getValueHash() const override { return qHash(&derived()); }
//! Simplifies composition, returns 0 for performance
friend uint qHash(const C<T> &) { return 0; }
//! \copydoc CValueObject::toJson
virtual QJsonObject toJson() const override