diff options
author | Karsten Heimrich <karsten.heimrich@qt.io> | 2020-06-26 10:25:35 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@qt.io> | 2020-06-26 12:51:26 +0200 |
commit | 6ae295c3bc4f0c16c4f0ffad995e416117abf377 (patch) | |
tree | 1ee934d1007d097d064dfe2bc58a82844876aaf3 | |
parent | 1e5c0eaa088fd78cb482070b379230c31efcd5df (diff) |
Fix size_t warnings
Change-Id: I84e154fe62f14a7df98c550a0a86ff69d3ba2034
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
-rw-r--r-- | src/knx/core/qknxbytearray.cpp | 2 | ||||
-rw-r--r-- | src/knx/netip/qknxnetipstruct.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/knx/core/qknxbytearray.cpp b/src/knx/core/qknxbytearray.cpp index 5b2d3d9..0923272 100644 --- a/src/knx/core/qknxbytearray.cpp +++ b/src/knx/core/qknxbytearray.cpp @@ -923,7 +923,7 @@ QDebug operator<<(QDebug debug, const QKnxByteArray &byteArray) /*! \relates QKnxByteArray - \fn uint qHash(const QKnxByteArray &key, uint seed = 0) + \fn size_t qHash(const QKnxByteArray &key, uint seed = 0) Returns the hash value for the \a key, using \a seed to seed the calculation. */ diff --git a/src/knx/netip/qknxnetipstruct.h b/src/knx/netip/qknxnetipstruct.h index 0e2d196..1f5ff42 100644 --- a/src/knx/netip/qknxnetipstruct.h +++ b/src/knx/netip/qknxnetipstruct.h @@ -157,7 +157,7 @@ Q_KNX_EXPORT QDebug operator<<(QDebug debug, const QKnxNetIpStruct<QKnxNetIp::De Q_KNX_EXPORT QDebug operator<<(QDebug debug, const QKnxNetIpStruct<QKnxNetIp::SearchParameterType> &srp); template <typename CodeType> -Q_DECL_PURE_FUNCTION uint qHash(const QKnxNetIpStruct<CodeType> &key, uint seed = 0) Q_DECL_NOTHROW +Q_DECL_PURE_FUNCTION size_t qHash(const QKnxNetIpStruct<CodeType> &key, uint seed = 0) Q_DECL_NOTHROW { return qHash(key.bytes(), seed); } |