diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-08-01 14:07:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-08-01 14:07:00 +0200 |
commit | 7d898e638abad8267420f8c0d827d21f716b8977 (patch) | |
tree | 897a31950ba0a345f05162e4e8616f26e1b69446 /filter-accela | |
parent | b930dd608bf95ecc3f89007313ba8ab8b1935ee5 (diff) |
fix clang warnings
Diffstat (limited to 'filter-accela')
-rw-r--r-- | filter-accela/accela-settings.hpp | 7 | ||||
-rw-r--r-- | filter-accela/ftnoir_filter_accela.cpp | 4 | ||||
-rw-r--r-- | filter-accela/ftnoir_filter_accela.h | 3 | ||||
-rw-r--r-- | filter-accela/ftnoir_filter_accela_dialog.cpp | 2 |
4 files changed, 14 insertions, 2 deletions
diff --git a/filter-accela/accela-settings.hpp b/filter-accela/accela-settings.hpp index c873b0b4..b2f62a43 100644 --- a/filter-accela/accela-settings.hpp +++ b/filter-accela/accela-settings.hpp @@ -2,6 +2,9 @@ #include "spline/spline.hpp" #include "options/options.hpp" + +namespace detail::accela { + using namespace options; // ------------------------------------ @@ -52,3 +55,7 @@ struct settings_accela : opts settings_accela() : opts("accela-sliders") {} }; + +} // ns detail::accela + +using detail::accela::settings_accela; diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp index 5fa1676f..44a341e0 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -139,6 +139,8 @@ void accela::filter(const double* input, double *output) } } +namespace detail::accela { + void settings_accela::make_splines(spline& rot, spline& pos) { rot.clear(); pos.clear(); @@ -150,4 +152,6 @@ void settings_accela::make_splines(spline& rot, spline& pos) pos.add_point({ val.x, val.y }); } +} // ns detail::accela + OPENTRACK_DECLARE_FILTER(accela, dialog_accela, accelaDll) diff --git a/filter-accela/ftnoir_filter_accela.h b/filter-accela/ftnoir_filter_accela.h index 9112b0b8..6471a7b8 100644 --- a/filter-accela/ftnoir_filter_accela.h +++ b/filter-accela/ftnoir_filter_accela.h @@ -19,9 +19,8 @@ //#define DEBUG_ACCELA -class accela : public IFilter +struct accela : IFilter { -public: accela(); void filter(const double* input, double *output) override; void center() override { first_run = true; } diff --git a/filter-accela/ftnoir_filter_accela_dialog.cpp b/filter-accela/ftnoir_filter_accela_dialog.cpp index d63f27fd..37f265e1 100644 --- a/filter-accela/ftnoir_filter_accela_dialog.cpp +++ b/filter-accela/ftnoir_filter_accela_dialog.cpp @@ -13,6 +13,8 @@ #include "spline/spline-widget.hpp" #include <QDialog> +using namespace options; + dialog_accela::dialog_accela() { ui.setupUi(this); |