From 69831b4a134eeb4aaa1bc5335b96609c9312801d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 26 Oct 2019 21:27:00 -0400 Subject: [PATCH] CCharLayoutInfo: Make constructors explicit Makes constructions of the types visibly explicit, given they aren't conversion constructors. --- Runtime/Character/CCharLayoutInfo.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Character/CCharLayoutInfo.hpp b/Runtime/Character/CCharLayoutInfo.hpp index 7e0ee2172..663a0f0d3 100644 --- a/Runtime/Character/CCharLayoutInfo.hpp +++ b/Runtime/Character/CCharLayoutInfo.hpp @@ -28,7 +28,7 @@ private: TSegIdMap x0_boneMap; public: - CCharLayoutNode(CInputStream& in); + explicit CCharLayoutNode(CInputStream& in); const TSegIdMap& GetBoneMap() const { return x0_boneMap; } }; @@ -38,7 +38,7 @@ class CCharLayoutInfo { std::map> x18_segIdMap; public: - CCharLayoutInfo(CInputStream& in); + explicit CCharLayoutInfo(CInputStream& in); const std::shared_ptr& GetRootNode() const { return x0_node; } const CSegIdList& GetSegIdList() const { return x8_segIdList; } zeus::CVector3f GetFromParentUnrotated(const CSegId& id) const;