CCameraSpline: Make constructor explicit

Same behavior, but prevents error-prone implicit constructions from
occurring.
This commit is contained in:
Lioncash 2020-03-25 02:40:51 -04:00
parent f1fce0f631
commit 20548ddeaa
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class CCameraSpline {
rstl::reserved_vector<zeus::CVector3f, 4>& directions) const; rstl::reserved_vector<zeus::CVector3f, 4>& directions) const;
public: public:
CCameraSpline(bool closedLoop); explicit CCameraSpline(bool closedLoop);
void CalculateKnots(TUniqueId cameraId, const std::vector<SConnection>& connections, CStateManager& mgr); void CalculateKnots(TUniqueId cameraId, const std::vector<SConnection>& connections, CStateManager& mgr);
void Initialize(TUniqueId cameraId, const std::vector<SConnection>& connections, CStateManager& mgr); void Initialize(TUniqueId cameraId, const std::vector<SConnection>& connections, CStateManager& mgr);
void Reset(int size); void Reset(int size);