mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
using hashes to perform comparisons between blackmisc value objects stored inside of QVariant
refs #81
This commit is contained in:
committed by
Mathew Sutcliffe
parent
67a5dbfe48
commit
a280d239e6
@@ -144,6 +144,18 @@ namespace BlackMisc
|
||||
argument >> this->m_k;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Stream to DBus
|
||||
* \param argument
|
||||
*/
|
||||
template <class ImplVector> uint CVector3DBase<ImplVector>::getValueHash() const
|
||||
{
|
||||
QList<uint> hashs;
|
||||
hashs << qHash(static_cast<long>(this->m_i));
|
||||
hashs << qHash(static_cast<long>(this->m_j));
|
||||
hashs << qHash(static_cast<long>(this->m_k));
|
||||
return BlackMisc::calculateHash(hashs, "CVector3DBase");
|
||||
}
|
||||
|
||||
/*
|
||||
* Register metadata
|
||||
|
||||
Reference in New Issue
Block a user