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

@@ -33,11 +33,11 @@ namespace Movement
ControlArray points;
ControlArray pointsVisual;
index_type index_lo;
index_type index_hi;
index_type index_lo{0};
index_type index_hi{0};
uint8 m_mode;
bool cyclic;
uint8 m_mode{UninitializedMode};
bool cyclic{false};
enum
{
@@ -79,7 +79,7 @@ namespace Movement
public:
explicit SplineBase() : index_lo(0), index_hi(0), m_mode(UninitializedMode), cyclic(false) {}
explicit SplineBase() {}
/** Caclulates the position for given segment Idx, and percent of segment length t
@param t - percent of segment length, assumes that t in range [0, 1]