diff options
Diffstat (limited to 'tracker-test')
-rw-r--r-- | tracker-test/test.cpp | 10 | ||||
-rw-r--r-- | tracker-test/test.h | 2 |
2 files changed, 4 insertions, 8 deletions
diff --git a/tracker-test/test.cpp b/tracker-test/test.cpp index f93f1556..0e09deb5 100644 --- a/tracker-test/test.cpp +++ b/tracker-test/test.cpp @@ -21,14 +21,9 @@ const double test_tracker::incr[6] = 70, 5, 3 }; -test_tracker::test_tracker() : - last_x { 0, 0, 0, 0, 0, 0 } -{ -} +test_tracker::test_tracker() = default; -test_tracker::~test_tracker() -{ -} +test_tracker::~test_tracker() = default; module_status test_tracker::start_tracker(QFrame*) { @@ -81,6 +76,7 @@ test_dialog::test_dialog() connect(ui.buttonBox, &QDialogButtonBox::clicked, [this](QAbstractButton* btn) { if (btn == ui.buttonBox->button(QDialogButtonBox::Abort)) + // NOLINTNEXTLINE *(volatile int*)nullptr = 0; }); diff --git a/tracker-test/test.h b/tracker-test/test.h index 3d5e92bd..6b4357cb 100644 --- a/tracker-test/test.h +++ b/tracker-test/test.h @@ -16,7 +16,7 @@ public: private: static const double incr[6]; - double last_x[6]; + double last_x[6] {}; Timer t; }; |