From 1c1c97cbd1d7913ac12bf550ec02c97f843a0fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot?= Date: Sun, 20 Aug 2017 13:30:50 +0200 Subject: 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 --- src/wieldmesh.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wieldmesh.h') diff --git a/src/wieldmesh.h b/src/wieldmesh.h index 51ba20536..828625075 100644 --- a/src/wieldmesh.h +++ b/src/wieldmesh.h @@ -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 *colors); -- cgit v1.2.3