2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-20 16:59:12 +00:00

General: Make use of explicit constructors where applicable

Gets rid of potential error prone implicitly constructing constructors.
This commit is contained in:
Lioncash
2020-03-25 21:25:11 -04:00
parent f4b3fb947e
commit 241a66dc0a
50 changed files with 117 additions and 111 deletions

View File

@@ -59,7 +59,7 @@ public:
float x10_rotAng = 0.f;
float x14_baseAngle = 0.f;
float x18_offshootAngleDelta = 0.f;
SOuterItemInfo(std::string_view);
explicit SOuterItemInfo(std::string_view);
};
private:
@@ -135,7 +135,7 @@ private:
bool zEqual) const;
public:
CCompoundTargetReticle(const CStateManager&);
explicit CCompoundTargetReticle(const CStateManager&);
void SetLeadingOrientation(const zeus::CQuaternion& o) { x0_leadingOrientation = o; }
bool CheckLoadComplete() { return true; }