Fix minor bits from cppcheck

This commit is contained in:
Sune Vuorela 2024-06-12 12:31:37 +02:00
parent 033f7b0fc6
commit 0bae96a5c0
2 changed files with 7 additions and 7 deletions

View File

@ -205,7 +205,7 @@ protected:
private:
Okular::HighlightAnnotation *m_hlAnn;
QComboBox *m_typeCombo;
QComboBox *m_typeCombo = nullptr;
};
class GeomAnnotationWidget : public AnnotationWidget
@ -222,10 +222,10 @@ protected:
private:
Okular::GeomAnnotation *m_geomAnn;
QComboBox *m_typeCombo;
QCheckBox *m_useColor;
KColorButton *m_innerColor;
QDoubleSpinBox *m_spinSize;
QComboBox *m_typeCombo = nullptr;
QCheckBox *m_useColor = nullptr;
KColorButton *m_innerColor = nullptr;
QDoubleSpinBox *m_spinSize = nullptr;
};
class FileAttachmentAnnotationWidget : public AnnotationWidget
@ -277,7 +277,7 @@ protected:
private:
Okular::InkAnnotation *m_inkAnn;
QDoubleSpinBox *m_spinSize;
QDoubleSpinBox *m_spinSize = nullptr;
};
#endif

View File

@ -158,7 +158,7 @@ public:
QPointF mousePressPos;
QPointF mouseSelectPos;
QPointF previousMouseMovePos;
qreal mouseMidLastY;
qreal mouseMidLastY = 0.0;
bool mouseSelecting = false;
QRect mouseSelectionRect;
QColor mouseSelectionColor;