From ce8e6abe7fff563b11ab1e83e2bd83cbac5745f9 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Tue, 4 Sep 2012 21:10:05 +0200 Subject: Check for C++ operators that should be 'const' Make sure all C++ class comparison operators are const. Change-Id: Ib4a66f2afe6c62f437dae1ecde94287d3db8442d Reviewed-by: Thiago Macieira Reviewed-by: David Faure --- src/gui/opengl/qopenglengineshadermanager_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/opengl/qopenglengineshadermanager_p.h') diff --git a/src/gui/opengl/qopenglengineshadermanager_p.h b/src/gui/opengl/qopenglengineshadermanager_p.h index 72ae1f9073..997a9d8e79 100644 --- a/src/gui/opengl/qopenglengineshadermanager_p.h +++ b/src/gui/opengl/qopenglengineshadermanager_p.h @@ -399,7 +399,7 @@ public: bool useOpacityAttribute; bool usePmvMatrixAttribute; - bool operator==(const QOpenGLEngineShaderProg& other) { + bool operator==(const QOpenGLEngineShaderProg& other) const { // We don't care about the program return ( mainVertexShader == other.mainVertexShader && positionVertexShader == other.positionVertexShader && -- cgit v1.2.3