From f1d37d999bf4088b430c7a42c78ddb5ec827a916 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Thu, 17 Sep 2020 09:54:58 +0200 Subject: Match new qHash() signature As documented in Qt 6 porting guide, qHash() should now also accept a size_t as seed in addition to returning it. Change-Id: I2b3ea26f631203468c071fa6ff65f95d82566132 Reviewed-by: Lars Knoll --- src/quickshapes/qquickshape_p_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quickshapes') diff --git a/src/quickshapes/qquickshape_p_p.h b/src/quickshapes/qquickshape_p_p.h index 82aafade87..10dfd268e7 100644 --- a/src/quickshapes/qquickshape_p_p.h +++ b/src/quickshapes/qquickshape_p_p.h @@ -200,7 +200,7 @@ struct QQuickShapeGradientCacheKey } }; -inline size_t qHash(const QQuickShapeGradientCacheKey &v, uint seed = 0) +inline size_t qHash(const QQuickShapeGradientCacheKey &v, size_t seed = 0) { uint h = seed + v.spread; for (int i = 0; i < 3 && i < v.stops.count(); ++i) -- cgit v1.2.3