summaryrefslogtreecommitdiffhomepage
path: root/tracker-fusion/fusion.h
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-fusion/fusion.h')
-rw-r--r--tracker-fusion/fusion.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/tracker-fusion/fusion.h b/tracker-fusion/fusion.h
index 9b199487..daadf27d 100644
--- a/tracker-fusion/fusion.h
+++ b/tracker-fusion/fusion.h
@@ -1,13 +1,16 @@
#pragma once
+
#include "api/plugin-api.hpp"
#include "api/plugin-support.hpp"
+#include "options/options.hpp"
+using namespace options;
+
+#include <memory>
+
#include <QObject>
#include <QFrame>
#include <QCoreApplication>
-#include "options/options.hpp"
-using namespace options;
-
struct fusion_settings final : opts
{
value<QVariant> rot_tracker_name, pos_tracker_name;
@@ -21,7 +24,7 @@ class fusion_tracker : public QObject, public ITracker
double rot_tracker_data[6] {}, pos_tracker_data[6] {};
- std::unique_ptr<QFrame> other_frame;
+ std::unique_ptr<QFrame> other_frame { std::make_unique<QFrame>() };
std::shared_ptr<dylib> rot_dylib, pos_dylib;
std::shared_ptr<ITracker> rot_tracker, pos_tracker;