aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qwinmime/tst_qwinmime.cpp4
-rw-r--r--tests/manual/dwmfeatures/testwidget.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qwinmime/tst_qwinmime.cpp b/tests/auto/qwinmime/tst_qwinmime.cpp
index 666f292..0c57de4 100644
--- a/tests/auto/qwinmime/tst_qwinmime.cpp
+++ b/tests/auto/qwinmime/tst_qwinmime.cpp
@@ -36,7 +36,7 @@
class TestMime : public QWinMime
{
public:
- TestMime(bool verbose = false) : formatsForMimeCalled(false), m_verbose(verbose) {}
+ TestMime(bool verbose = false) : m_verbose(verbose) {}
bool canConvertFromMime(const FORMATETC &, const QMimeData *mimeData) const Q_DECL_OVERRIDE
{
@@ -81,7 +81,7 @@ public:
return QString();
}
- mutable bool formatsForMimeCalled;
+ mutable bool formatsForMimeCalled = false;
private:
const bool m_verbose;
diff --git a/tests/manual/dwmfeatures/testwidget.h b/tests/manual/dwmfeatures/testwidget.h
index 50dec4e..8004eca 100644
--- a/tests/manual/dwmfeatures/testwidget.h
+++ b/tests/manual/dwmfeatures/testwidget.h
@@ -50,8 +50,8 @@ public:
~TestWidget();
protected:
- void changeEvent(QEvent *e);
- bool event(QEvent *);
+ void changeEvent(QEvent *e) override;
+ bool event(QEvent *) override;
private:
Ui::TestWidget *ui;