[Libreoffice-commits] .: slideshow/source

Caolán McNamara caolan at kemper.freedesktop.org
Wed Nov 24 02:52:39 PST 2010


 slideshow/source/engine/OGLTrans/OGLTrans_Shaders.cxx |    4 ++--
 slideshow/source/engine/OGLTrans/OGLTrans_Shaders.hxx |    3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 31cbccc96d141d83d72d1b6c664d855a7f5dc5e8
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Nov 24 09:10:02 2010 +0000

    cppcheck: Unused private function under certain ifdefs

diff --git a/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.cxx b/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.cxx
index 76b893a..d649d3f 100644
--- a/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.cxx
+++ b/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.cxx
@@ -36,10 +36,10 @@ namespace unx
 #include <GL/glxext.h>
 }
 
-bool OGLShaders::cbInitialized = false;
-
 #ifdef GL_VERSION_2_0
 
+bool OGLShaders::cbInitialized = false;
+
 PFNGLCREATESHADERPROC OGLShaders::glCreateShader = NULL;
 PFNGLSHADERSOURCEPROC OGLShaders::glShaderSource = NULL;
 PFNGLCOMPILESHADERPROC OGLShaders::glCompileShader = NULL;
diff --git a/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.hxx b/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.hxx
index e42c2a0..741fbc4 100644
--- a/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.hxx
+++ b/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.hxx
@@ -34,8 +34,11 @@
 #include <GL/glext.h>
 
 class OGLShaders {
+
+#ifdef GL_VERSION_2_0
     static bool Initialize();
     static bool cbInitialized;
+#endif
 
 public:    
 


More information about the Libreoffice-commits mailing list