From 19c940febc04293c4e841934ea30234d74c165d0 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Sat, 13 Nov 2021 17:19:29 -0500
Subject: [PATCH] const cleanup

---
 indra/llmath/llcamera.cpp | 2 +-
 indra/llmath/llcamera.h   | 2 +-
 indra/llmath/llplane.h    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/indra/llmath/llcamera.cpp b/indra/llmath/llcamera.cpp
index e37c97b1389..70b716d8dc0 100644
--- a/indra/llmath/llcamera.cpp
+++ b/indra/llmath/llcamera.cpp
@@ -95,7 +95,7 @@ LLPlane LLCamera::getUserClipPlane()
 
 // ---------------- LLCamera::setFoo() member functions ----------------
 
-void LLCamera::setUserClipPlane(LLPlane& plane)
+void LLCamera::setUserClipPlane(const LLPlane& plane)
 {
 	mPlaneCount = AGENT_PLANE_USER_CLIP_NUM;
 	mAgentPlanes[AGENT_PLANE_USER_CLIP] = plane;
diff --git a/indra/llmath/llcamera.h b/indra/llmath/llcamera.h
index a8d13f698ff..2e0dd2067b5 100644
--- a/indra/llmath/llcamera.h
+++ b/indra/llmath/llcamera.h
@@ -155,7 +155,7 @@ class LLCamera
 	bool isChanged(); //check if mAgentPlanes changed since last frame.
 
     LLPlane getUserClipPlane();
-	void setUserClipPlane(LLPlane& plane);
+	void setUserClipPlane(const LLPlane& plane);
 	void disableUserClipPlane();
 	virtual void setView(F32 vertical_fov_rads);
 	void setViewHeightInPixels(S32 height);
diff --git a/indra/llmath/llplane.h b/indra/llmath/llplane.h
index a43bcfc862c..c4068533c62 100644
--- a/indra/llmath/llplane.h
+++ b/indra/llmath/llplane.h
@@ -89,7 +89,7 @@ class LLPlane
 	inline void getVector3(LLVector3& vec) const { vec.set(mV[0], mV[1], mV[2]); }
 	
 	// Retrieve the mask indicating which of the x, y, or z axis are greater or equal to zero.
-	inline U8 calcPlaneMask() 
+	inline U8 calcPlaneMask() const
 	{ 
 		return mV.greaterEqual(LLVector4a::getZero()).getGatheredBits() & LLVector4Logical::MASK_XYZ;
 	}
-- 
GitLab