diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-08-19 14:25:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-19 14:25:35 +0200 |
commit | 7528986e4449febead9b18b6118f0b096f7cf800 (patch) | |
tree | 8e526c1403ba8d0689ab40a24165fc19d8a07e27 /src/quicktune.h | |
parent | 1992db1395d9c068327a7c08bac7a24ef7112274 (diff) | |
download | minetest-7528986e4449febead9b18b6118f0b096f7cf800.tar.gz minetest-7528986e4449febead9b18b6118f0b096f7cf800.tar.bz2 minetest-7528986e4449febead9b18b6118f0b096f7cf800.zip |
Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282)
* Code modernization: src/p*, src/q*, src/r*, src/s* (partial)
* empty function
* default constructor/destructor
* for range-based loops
* use emplace_back instead of push_back
* C++ STL header style
* Spelling: vertice -> vertex
Diffstat (limited to 'src/quicktune.h')
-rw-r--r-- | src/quicktune.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/quicktune.h b/src/quicktune.h index 1659e09f1..1943d19c2 100644 --- a/src/quicktune.h +++ b/src/quicktune.h @@ -58,7 +58,7 @@ enum QuicktuneValueType{ }; struct QuicktuneValue { - QuicktuneValueType type; + QuicktuneValueType type = QVT_NONE; union{ struct{ float current; @@ -66,12 +66,10 @@ struct QuicktuneValue float max; } value_QVT_FLOAT; }; - bool modified; + bool modified = false; + + QuicktuneValue() = default; - QuicktuneValue(): - type(QVT_NONE), - modified(false) - {} std::string getString(); void relativeAdd(float amount); }; |