mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Modernize source code: last part (#6285)
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
This commit is contained in:
@@ -44,7 +44,7 @@ struct ItemPartColor
|
||||
*/
|
||||
video::SColor color = 0;
|
||||
|
||||
ItemPartColor() {}
|
||||
ItemPartColor() = default;
|
||||
|
||||
ItemPartColor(bool override, video::SColor color)
|
||||
: override_base(override), color(color)
|
||||
@@ -65,7 +65,7 @@ struct ItemMesh
|
||||
*/
|
||||
bool needs_shading = true;
|
||||
|
||||
ItemMesh() {}
|
||||
ItemMesh() = default;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -135,5 +135,5 @@ scene::SMesh *getExtrudedMesh(ITextureSource *tsrc, const std::string &imagename
|
||||
* \param colors returns the colors of the mesh buffers in the mesh.
|
||||
*/
|
||||
void postProcessNodeMesh(scene::SMesh *mesh, const ContentFeatures &f, bool use_shaders,
|
||||
bool set_material, video::E_MATERIAL_TYPE *mattype,
|
||||
bool set_material, const video::E_MATERIAL_TYPE *mattype,
|
||||
std::vector<ItemPartColor> *colors);
|
||||
|
Reference in New Issue
Block a user