From e2158e48a1995bb5913d42fa56e016ba5b90609b Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Thu, 14 Jan 2016 18:03:58 -0800 Subject: [PATCH] Declare Corners explicitly --- libraries/octree/src/ViewFrustum.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/octree/src/ViewFrustum.h b/libraries/octree/src/ViewFrustum.h index 1c033cc38c..da7822e1a6 100644 --- a/libraries/octree/src/ViewFrustum.h +++ b/libraries/octree/src/ViewFrustum.h @@ -61,7 +61,7 @@ public: float getFarClip() const { return _farClip; } float getFocalLength() const { return _focalLength; } - const class Corners{ + class Corners { public: Corners(glm::vec3&& topLeft, glm::vec3&& topRight, glm::vec3&& bottomLeft, glm::vec3&& bottomRight) : topLeft{ topLeft }, topRight{ topRight }, bottomLeft{ bottomLeft }, bottomRight{ bottomRight } {} @@ -70,7 +70,8 @@ public: glm::vec3 bottomLeft; glm::vec3 bottomRight; // Get the corners depth units from frustum position, along frustum orientation - } getCorners(const float& depth); + }; + const Corners getCorners(const float& depth); // getters for corners const glm::vec3& getFarTopLeft() const { return _cornersWorld[TOP_LEFT_FAR]; }