*/
x = qBound(spline.begin(), x, spline.end());
qreal y = spline.getValue(x);
- return qBound(0.0, y, 1.0);
+ return qBound((qreal)0.0, y, (qreal)1.0);
}
template<typename _T_, typename _T2_>
qreal end = 1.0 / (size - 1);
for (int i = 0; i < size; ++i) {
/* Direct uncached version */
- _T2_ val = value(i * end ) * max;
+ _T2_ val = value(i * end) * max;
val = qBound(min, val, max);
(*transfer)[i] = val;
}
{
d->data = new Data;
QPointF p;
- p.rx() = 0.0; p.ry() = 0.0;
+ p.rx() = 0.0;
+ p.ry() = 0.0;
d->data->points.append(p);
- p.rx() = 1.0; p.ry() = 1.0;
+ p.rx() = 1.0;
+ p.ry() = 1.0;
d->data->points.append(p);
}