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_schematic.cpp | |
parent | b5f7249a7edc25077d84b27b38552228b92ff763 (diff) | |
download | minetest-d382483fa76028c2d34f75067bff45306c6da34e.tar.xz |
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_schematic.cpp')
-rw-r--r-- | src/mg_schematic.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mg_schematic.cpp b/src/mg_schematic.cpp index c50e90b3a..8874abd42 100644 --- a/src/mg_schematic.cpp +++ b/src/mg_schematic.cpp @@ -56,7 +56,7 @@ void SchematicManager::clear() DecoSchematic *dschem = dynamic_cast<DecoSchematic *>(deco); if (dschem) dschem->schematic = NULL; - } catch (std::bad_cast) { + } catch (const std::bad_cast &) { } } @@ -68,8 +68,7 @@ void SchematicManager::clear() Schematic::Schematic() -{ -} += default; Schematic::~Schematic() |