mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00: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:
parent
1992db1395
commit
7528986e44
28 changed files with 363 additions and 443 deletions
|
@ -72,7 +72,7 @@ struct ValueSpec {
|
|||
};
|
||||
|
||||
struct SettingsEntry {
|
||||
SettingsEntry() {}
|
||||
SettingsEntry() = default;
|
||||
|
||||
SettingsEntry(const std::string &value_) :
|
||||
value(value_)
|
||||
|
@ -92,7 +92,8 @@ typedef std::unordered_map<std::string, SettingsEntry> SettingEntries;
|
|||
|
||||
class Settings {
|
||||
public:
|
||||
Settings() {}
|
||||
Settings() = default;
|
||||
|
||||
~Settings();
|
||||
|
||||
Settings & operator += (const Settings &other);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue