aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-12-16 15:54:41 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-12-17 07:59:27 +0000
commitcb96a2ca34089d739d67507de6e1326a0219c539 (patch)
tree02f9b8b4a46097defcb4d0e122bcca85fa070019 /src
parent224cebe0d96af0f3f4de27aff03918fc319687fa (diff)
QQuickShapeGradientCacheKey: Fix a MSVC integer conversion warning
Change-Id: Ie81bc6504cb79fbfe30d552a85016f5acf0ff6f3 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> (cherry picked from commit 0d7faa3cbbffbdc45eb3ca3c996e5e7d8cf85bdc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/quickshapes/qquickshape_p_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickshapes/qquickshape_p_p.h b/src/quickshapes/qquickshape_p_p.h
index 10dfd268e7..55471ebfdf 100644
--- a/src/quickshapes/qquickshape_p_p.h
+++ b/src/quickshapes/qquickshape_p_p.h
@@ -202,7 +202,7 @@ struct QQuickShapeGradientCacheKey
inline size_t qHash(const QQuickShapeGradientCacheKey &v, size_t seed = 0)
{
- uint h = seed + v.spread;
+ size_t h = seed + v.spread;
for (int i = 0; i < 3 && i < v.stops.count(); ++i)
h += v.stops[i].second.rgba();
return h;