From 7d898e638abad8267420f8c0d827d21f716b8977 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 1 Aug 2019 14:07:00 +0200 Subject: fix clang warnings --- filter-accela/accela-settings.hpp | 7 +++++++ filter-accela/ftnoir_filter_accela.cpp | 4 ++++ filter-accela/ftnoir_filter_accela.h | 3 +-- filter-accela/ftnoir_filter_accela_dialog.cpp | 2 ++ 4 files changed, 14 insertions(+), 2 deletions(-) (limited to 'filter-accela') 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 +using namespace options; + dialog_accela::dialog_accela() { ui.setupUi(this); -- cgit v1.2.3