summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-30 17:47:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-30 17:47:27 +0100
commitf33fc78dc4bdb977bb358bf7e905ef2d4e093b3d (patch)
tree2aef35b430b4f88399af2d02164f957f3a37b699
parent612479b4116cb6adea9f12fc0c259d61e4273bbe (diff)
filter/accela: simplify macro
-rw-r--r--filter-accela/ftnoir_filter_accela.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp
index 5d1671ae..652fb248 100644
--- a/filter-accela/ftnoir_filter_accela.cpp
+++ b/filter-accela/ftnoir_filter_accela.cpp
@@ -35,7 +35,7 @@ void accela::filter(const double* input, double *output)
return;
}
-#define cast(x) (static_cast<const slider_value&>((x)))
+#define cast(x) ((x)())
const double rot_t = cast(s.rot_sensitivity).cur();
const double trans_t = cast(s.trans_sensitivity).cur();