diff --git a/include/vcl/opengl/OpenGLHelper.hxx b/include/vcl/opengl/OpenGLHelper.hxx index 646a2d39254e..9f725e694605 100644 --- a/include/vcl/opengl/OpenGLHelper.hxx +++ b/include/vcl/opengl/OpenGLHelper.hxx @@ -34,9 +34,11 @@ } \ } while (false) -class VCL_DLLPUBLIC OpenGLHelper +// All member functions static and VCL_DLLPUBLIC. Basically a glorified namespace. +struct VCL_DLLPUBLIC OpenGLHelper { -public: + OpenGLHelper() SAL_DELETED_FUNCTION; // Should not be instantiated + static GLint LoadShaders(const OUString& rVertexShaderName, const OUString& rFragmentShaderName, const OString& preamble = "" ); /** diff --git a/include/vcl/opengl/OpenGLWrapper.hxx b/include/vcl/opengl/OpenGLWrapper.hxx index c2f44c0c6b6b..4d3a9e9ab57b 100644 --- a/include/vcl/opengl/OpenGLWrapper.hxx +++ b/include/vcl/opengl/OpenGLWrapper.hxx @@ -14,9 +14,11 @@ #include -class VCL_DLLPUBLIC OpenGLWrapper +// All member functions static and VCL_DLLPUBLIC. Basically a glorified namespace. +struct VCL_DLLPUBLIC OpenGLWrapper { -public: + OpenGLWrapper() SAL_DELETED_FUNCTION; // Should not be instantiated + /** * Returns true if VCL has OpenGL rendering enabled */