mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-31 18:31:04 +00:00
Modernize various files (src/m*) (#6267)
* Modernize various files (src/m*) * range-based for loops * code style * C++ headers instead of C headers * Default operators * empty function Thanks to clang-tidy
This commit is contained in:
parent
fb196be8cf
commit
c427533389
34 changed files with 254 additions and 355 deletions
|
@ -25,8 +25,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
struct MapgenSinglenodeParams : public MapgenParams
|
||||
{
|
||||
MapgenSinglenodeParams() {}
|
||||
~MapgenSinglenodeParams() {}
|
||||
MapgenSinglenodeParams() = default;
|
||||
~MapgenSinglenodeParams() = default;
|
||||
|
||||
void readParams(const Settings *settings) {}
|
||||
void writeParams(Settings *settings) const {}
|
||||
|
@ -40,7 +40,7 @@ public:
|
|||
u8 set_light;
|
||||
|
||||
MapgenSinglenode(int mapgenid, MapgenParams *params, EmergeManager *emerge);
|
||||
~MapgenSinglenode();
|
||||
~MapgenSinglenode() = default;
|
||||
|
||||
virtual MapgenType getType() const { return MAPGEN_SINGLENODE; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue