aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2019-12-12 13:27:02 +0100
committerMitch Curtis <mitch.curtis@qt.io>2019-12-12 15:41:00 +0100
commitbcdd38074be6828db41396bd3c0ec601993ed59b (patch)
tree64b1aa0afb7fa21bfeff3e34dd4ecc94d834db3b
parent06162b3712b6ff2e25e1b20a139fe5c42e95b123 (diff)
clang-tidy: fix cppcoreguidelines-pro-type-member-init
Ensure that all members are initialized and remove an unused member. Change-Id: Ibfb3ea86b7791cd6f8683b68e7cd3bc4256b33f7 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r--examples/quickcontrols2/texteditor/documenthandler.h1
-rw-r--r--src/imports/calendar/qquickweeknumbermodel.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/quickcontrols2/texteditor/documenthandler.h b/examples/quickcontrols2/texteditor/documenthandler.h
index 97e55658..1a34f0e0 100644
--- a/examples/quickcontrols2/texteditor/documenthandler.h
+++ b/examples/quickcontrols2/texteditor/documenthandler.h
@@ -170,7 +170,6 @@ private:
int m_selectionEnd;
QFont m_font;
- int m_fontSize;
QUrl m_fileUrl;
};
diff --git a/src/imports/calendar/qquickweeknumbermodel.cpp b/src/imports/calendar/qquickweeknumbermodel.cpp
index c45d8938..8144fb12 100644
--- a/src/imports/calendar/qquickweeknumbermodel.cpp
+++ b/src/imports/calendar/qquickweeknumbermodel.cpp
@@ -46,7 +46,7 @@ class QQuickWeekNumberModelPrivate : public QAbstractItemModelPrivate
Q_DECLARE_PUBLIC(QQuickWeekNumberModel)
public:
- QQuickWeekNumberModelPrivate() : month(-1), year(-1)
+ QQuickWeekNumberModelPrivate() : month(-1), year(-1), weekNumbers{}
{
QDate date = QDate::currentDate();
init(date.month(), date.year(), locale);