From 1bef4a7cefc50df50f05549ffc792a4bede156fe Mon Sep 17 00:00:00 2001 From: nyoungbq Date: Thu, 8 Aug 2024 17:16:54 -0400 Subject: [PATCH] Add type declarations for Clang Compiler --- src/simplnx/Common/Ray.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/simplnx/Common/Ray.hpp b/src/simplnx/Common/Ray.hpp index 9871735a46..1d4f843512 100644 --- a/src/simplnx/Common/Ray.hpp +++ b/src/simplnx/Common/Ray.hpp @@ -241,7 +241,7 @@ class CachedRay : public Ray * @param ang * @param length */ - CachedRay(const Ray::PointType& origin, Ray::ZXZEulerType ang, Ray::LengthType length) + CachedRay(const typename Ray::PointType& origin, typename Ray::ZXZEulerType ang, typename Ray::LengthType length) : Ray(origin, std::move(ang), length) { m_Endpoint = this->calculateEndpoint(); @@ -297,36 +297,36 @@ class CachedRay : public Ray return *this; } - void setOrigin(const Ray::PointType& origin) override + void setOrigin(const typename Ray::PointType& origin) override { this->m_Origin = origin; - m_Endpoint = Ray::calculateEndpoint(); + m_Endpoint = this->calculateEndpoint(); } - void setLength(Ray::LengthType length) override + void setLength(typename Ray::LengthType length) override { this->m_Length = length; m_Endpoint = this->calculateEndpoint(); } - void setEuler(const Ray::ZXZEulerType& ang) override + void setEuler(const typename Ray::ZXZEulerType& ang) override { this->m_Angle = ang; m_Endpoint = this->calculateEndpoint(); } - const Ray::PointType& getEndPointRef() const + const typename Ray::PointType& getEndPointRef() const { return m_Endpoint; } - Ray::PointType getEndPoint() const override + typename Ray::PointType getEndPoint() const override { return m_Endpoint; } private: // Optional caching for speed - Ray::PointType m_Endpoint = {}; + typename Ray::PointType m_Endpoint = {}; }; } // namespace nx::core