QtGui/painting benchmark test: Fix Clang warning about uninitialized value
benchmarktests.h:323:18: warning: field 'm_as_pixmap' is uninitialized when used here [-Wuninitialized] benchmarktests.h:371:18: warning: field 'm_as_pixmap' is uninitialized when used here [-Wuninitialized] benchmarktests.h:417:18: warning: field 'm_as_pixmap' is uninitialized when used here [-Wuninitialized] Change-Id: Ica496e3baa19e0701c64222ce8ab92ec94178db7 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
cc786350ae
commit
41e4b4de91
@ -320,7 +320,7 @@ public:
|
|||||||
DrawScaledImage(const QImage &image, qreal scale, bool asPixmap)
|
DrawScaledImage(const QImage &image, qreal scale, bool asPixmap)
|
||||||
: Benchmark(QSize(image.width(), image.height())),
|
: Benchmark(QSize(image.width(), image.height())),
|
||||||
m_image(image),
|
m_image(image),
|
||||||
m_type(m_as_pixmap ? "Pixmap" : "Image"),
|
m_type(asPixmap ? "Pixmap" : "Image"),
|
||||||
m_scale(scale),
|
m_scale(scale),
|
||||||
m_as_pixmap(asPixmap)
|
m_as_pixmap(asPixmap)
|
||||||
{
|
{
|
||||||
@ -368,7 +368,7 @@ public:
|
|||||||
DrawTransformedImage(const QImage &image, bool asPixmap)
|
DrawTransformedImage(const QImage &image, bool asPixmap)
|
||||||
: Benchmark(QSize(image.width(), image.height())),
|
: Benchmark(QSize(image.width(), image.height())),
|
||||||
m_image(image),
|
m_image(image),
|
||||||
m_type(m_as_pixmap ? "Pixmap" : "Image"),
|
m_type(asPixmap ? "Pixmap" : "Image"),
|
||||||
m_as_pixmap(asPixmap)
|
m_as_pixmap(asPixmap)
|
||||||
{
|
{
|
||||||
m_pixmap = QPixmap::fromImage(m_image);
|
m_pixmap = QPixmap::fromImage(m_image);
|
||||||
@ -414,7 +414,7 @@ public:
|
|||||||
DrawImage(const QImage &image, bool asPixmap)
|
DrawImage(const QImage &image, bool asPixmap)
|
||||||
: Benchmark(QSize(image.width(), image.height())),
|
: Benchmark(QSize(image.width(), image.height())),
|
||||||
m_image(image),
|
m_image(image),
|
||||||
m_type(m_as_pixmap ? "Pixmap" : "Image"),
|
m_type(asPixmap ? "Pixmap" : "Image"),
|
||||||
m_as_pixmap(asPixmap)
|
m_as_pixmap(asPixmap)
|
||||||
{
|
{
|
||||||
m_pixmap = QPixmap::fromImage(image);
|
m_pixmap = QPixmap::fromImage(image);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user