diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-12-16 15:54:41 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-12-17 07:44:41 +0100 |
commit | 0d7faa3cbbffbdc45eb3ca3c996e5e7d8cf85bdc (patch) | |
tree | c24284937050054176bf9b94741a53ed046f37cc /src/quickshapes | |
parent | 0ed931f2602017fb46108011f9b8e1bda3ba45b7 (diff) |
QQuickShapeGradientCacheKey: Fix a MSVC integer conversion warning
Pick-to: 6.0
Change-Id: Ie81bc6504cb79fbfe30d552a85016f5acf0ff6f3
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/quickshapes')
-rw-r--r-- | src/quickshapes/qquickshape_p_p.h | 2 |
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; |