Don't detach QGradientStops

Change-Id: I1ae84d0ae825e9fb474d4fab45b0c475a3878b25
Reviewed-by: David Faure <david.faure@kdab.com>
bb10
Sérgio Martins 2016-01-05 14:09:30 +00:00 committed by Sérgio Martins
parent e0cc6e5b8e
commit a1702da020
1 changed files with 1 additions and 1 deletions

View File

@ -4150,7 +4150,7 @@ public:
inline const QRgba64 *getBuffer(const QGradient &gradient, int opacity) {
quint64 hash_val = 0;
QGradientStops stops = gradient.stops();
const QGradientStops stops = gradient.stops();
for (int i = 0; i < stops.size() && i <= 2; i++)
hash_val += stops[i].second.rgba64();