refactor(Core): apply clang-tidy modernize-use-default-member-init (#3827)

This commit is contained in:
Francesco Borzì
2020-12-07 20:34:06 +01:00
committed by GitHub
parent 1cf39b3d22
commit c5a35efd7b
47 changed files with 352 additions and 366 deletions

View File

@@ -42,12 +42,12 @@ public:
class ModelInstance
{
public:
uint32 id;
uint32 id{0};
Vec3D pos, rot;
uint16 scale, flags;
float sc;
uint16 scale{0}, flags{0};
float sc{0.0f};
ModelInstance() : id(0), scale(0), flags(0), sc(0.0f) {}
ModelInstance() {}
ModelInstance(MPQFile& f, char const* ModelInstName, uint32 mapID, uint32 tileX, uint32 tileY, FILE* pDirfile);
};