diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-05-02 18:24:27 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-05-02 18:24:27 +0200 |
commit | 5ea61a6b6f2cc587cf3aeb0cf16f2f492b20b52f (patch) | |
tree | 51340656683e9c3764810771104d92b596b3758a /tracker-fusion/fusion.h | |
parent | 31c8c2e8ee6686b55456c58ecc880e7e1874ac9b (diff) |
tracker/fusion: fix logic error
Debugged-by: @Artyrm
Issue: #775
Diffstat (limited to 'tracker-fusion/fusion.h')
-rw-r--r-- | tracker-fusion/fusion.h | 11 |
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; |