summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/functionconfig.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-20 09:35:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-20 09:36:54 +0200
commit8a9eae2aa9b12984edd2cbf6321a0db3061ead24 (patch)
treeedf4601a22c4e6d2b11d68c888ba0cf9d42d01ed /spline-widget/functionconfig.h
parent70d5fdedd5fd6d88d2d7453ac49af6aa75cbd5fb (diff)
spline-widget: move bool last to minimize padding
Diffstat (limited to 'spline-widget/functionconfig.h')
-rw-r--r--spline-widget/functionconfig.h18
1 files 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;