From 8a9eae2aa9b12984edd2cbf6321a0db3061ead24 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 20 Jun 2016 09:35:12 +0200 Subject: spline-widget: move bool last to minimize padding --- spline-widget/functionconfig.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spline-widget/functionconfig.h b/spline-widget/functionconfig.h index 5c9eeb2b..5d83aefd 100644 --- a/spline-widget/functionconfig.h +++ b/spline-widget/functionconfig.h @@ -24,9 +24,12 @@ # define SPLINE_WIDGET_EXPORT Q_DECL_IMPORT #endif -class SPLINE_WIDGET_EXPORT Map { +class SPLINE_WIDGET_EXPORT Map +{ private: - static constexpr int value_count = 10000; + int precision() const; + void reload(); + float getValueInternal(int x); struct State { @@ -35,16 +38,13 @@ private: bool operator==(const State& s) const; }; - int precision() const; - void reload(); - float getValueInternal(int x); - MyMutex _mutex; QPointF last_input_value; - qreal max_x; - qreal max_y; - volatile bool activep; State cur, saved; + qreal max_x, max_y; + volatile bool activep; + + static constexpr int value_count = 10000; public: qreal maxInput() const; qreal maxOutput() const; -- cgit v1.2.3