aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2021-02-05 11:13:39 +0000
committerDavid Edmundson <davidedmundson@kde.org>2021-02-11 10:12:13 +0000
commit9a9c13a4a36707db704412812780015b8d839766 (patch)
treef0e8c43c7ed05b4b09f517fc948312ee89e51409
parent76f05314f5eb2ab3a13656647e99e20575471bed (diff)
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 <andy.nichols@qt.io>
-rw-r--r--src/quick/scenegraph/adaptations/software/qsgsoftwarepublicnodes_p.h2
1 files changed, 1 insertions, 1 deletions
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;
};