From 9a9c13a4a36707db704412812780015b8d839766 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 5 Feb 2021 11:13:39 +0000 Subject: SoftwareImageNodes: Initialize member variable m_pixelRatio is not set in the constructor It seems the method setDevicePixelRatio is always called, so there are no ill effects, but without setting it we still read uninitialized data creating warnings when used with a memory checker. Change-Id: Iadfe07600d027dddb98fdd755b4022b2b81547a8 Reviewed-by: Andy Nichols --- src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h b/src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h index 470bb73f78..f005413c5f 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h @@ -141,7 +141,7 @@ public: private: QPixmap m_pixmap; QRectF m_bounds; - qreal m_pixelRatio; + qreal m_pixelRatio = 1.0; QMargins m_margins; }; -- cgit v1.2.3