mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
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
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user