diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2017-08-19 09:29:55 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2017-08-19 09:29:55 +0200 |
commit | d382483fa76028c2d34f75067bff45306c6da34e (patch) | |
tree | 1a8928995f3e7e15a5fc8834ee2127735b0e0ec6 /src/mg_ore.h | |
parent | b5f7249a7edc25077d84b27b38552228b92ff763 (diff) | |
download | minetest-d382483fa76028c2d34f75067bff45306c6da34e.tar.gz minetest-d382483fa76028c2d34f75067bff45306c6da34e.tar.bz2 minetest-d382483fa76028c2d34f75067bff45306c6da34e.zip |
Code modernization: src/m* (part 3)
* empty function
* default constructor/destructor
* for range-based loops
* use emplace_back instead of push_back
* remove some unused headers in some cpp variable
Diffstat (limited to 'src/mg_ore.h')
-rw-r--r-- | src/mg_ore.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mg_ore.h b/src/mg_ore.h index eaaf2b883..253b115a2 100644 --- a/src/mg_ore.h +++ b/src/mg_ore.h @@ -64,7 +64,7 @@ public: Noise *noise = nullptr; std::unordered_set<u8> biomes; - Ore() {}; + Ore() = default;; virtual ~Ore(); virtual void resolveNodeNames(); @@ -136,7 +136,7 @@ public: class OreManager : public ObjDefManager { public: OreManager(IGameDef *gamedef); - virtual ~OreManager() {} + virtual ~OreManager() = default; const char *getObjectTitle() const { |