diff --git a/src/axis/datetimeaxis/qdatetimeaxis.cpp b/src/axis/datetimeaxis/qdatetimeaxis.cpp index 10ad174..471d802 100644 --- a/src/axis/datetimeaxis/qdatetimeaxis.cpp +++ b/src/axis/datetimeaxis/qdatetimeaxis.cpp @@ -260,10 +260,10 @@ QAbstractAxis::AxisType QDateTimeAxis::type() const QDateTimeAxisPrivate::QDateTimeAxisPrivate(QDateTimeAxis* q): QAbstractAxisPrivate(q), + m_min(QDateTime::fromMSecsSinceEpoch(0)), + m_max(QDateTime::fromMSecsSinceEpoch(0)), m_tickCount(5) { - m_min = QDateTime::fromMSecsSinceEpoch(0); - m_max = QDateTime::fromMSecsSinceEpoch(0); m_format = "dd-MM-yyyy\nh:mm"; } diff --git a/src/piechart/pieslicedata_p.h b/src/piechart/pieslicedata_p.h index 41929de..e50b590 100644 --- a/src/piechart/pieslicedata_p.h +++ b/src/piechart/pieslicedata_p.h @@ -67,23 +67,19 @@ private: class PieSliceData { public: - PieSliceData() + PieSliceData() : + m_value(0), + m_isExploded(false), + m_explodeDistanceFactor(0.15), + m_isLabelVisible(false), + m_labelPosition(QPieSlice::LabelOutside), + m_labelArmLengthFactor(0.15), + m_percentage(0), + m_radius(0), + m_startAngle(0), + m_angleSpan(0), + m_holeRadius(0) { - m_value = 0; - - m_isExploded = false; - m_explodeDistanceFactor = 0.15; - - m_isLabelVisible = false; - m_labelPosition = QPieSlice::LabelOutside; - m_labelArmLengthFactor = 0.15; - - m_percentage = 0; - m_radius = 0; - m_startAngle = 0; - m_angleSpan = 0; - - m_holeRadius = 0; } bool operator!=(const PieSliceData &other) const