summaryrefslogtreecommitdiffhomepage
path: root/tracker-test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-13 16:20:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-13 16:20:30 +0200
commit68f5f213bf0cbd0bd60a6849bf4379113ea06282 (patch)
tree7906520ed59fe4ef7c03de91d55f4f74b87e4072 /tracker-test
parentdb47f9fc711f9b0abeb8461042c40c70d5a71021 (diff)
appease analyzer
Diffstat (limited to 'tracker-test')
-rw-r--r--tracker-test/test.cpp10
-rw-r--r--tracker-test/test.h2
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;
};