mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-09 03:25:28 +01:00
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
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user