From 27caf4b87de1979fc5c5070b045e988a2b1e436c Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Mon, 28 Jul 2025 18:51:47 +0200 Subject: [PATCH] Add mising const in Ogre Add the required const to operator == as required and warned about with C++20. Signed-off-by: Ralph Sennhauser --- source/third_party/ogre3d_preprocessor/OgreGLSLPreprocessor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/third_party/ogre3d_preprocessor/OgreGLSLPreprocessor.h b/source/third_party/ogre3d_preprocessor/OgreGLSLPreprocessor.h index 29b949257c..33847d880d 100644 --- a/source/third_party/ogre3d_preprocessor/OgreGLSLPreprocessor.h +++ b/source/third_party/ogre3d_preprocessor/OgreGLSLPreprocessor.h @@ -168,7 +168,7 @@ namespace Ogre void SetValue (long iValue); /// Test two tokens for equality - bool operator == (const Token &iOther) + bool operator == (const Token &iOther) const { if (iOther.Length != Length) return false;