From 9bedada232fb821f1fba2c1bdbd24702947dcaed Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Sat, 15 Sep 2012 16:51:51 +0200 Subject: gui/opengl: Fix missing or improper include guard in headers Use an include guard in headers to ensure the header is not included more than once. Make the header guard match its file name. Change-Id: I29b41e9d33e4ea17165f44c49de0a963574dd809 Reviewed-by: Konstantin Ritt --- src/opengl/gl2paintengineex/qglgradientcache_p.h | 4 ++++ src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src/opengl/gl2paintengineex') diff --git a/src/opengl/gl2paintengineex/qglgradientcache_p.h b/src/opengl/gl2paintengineex/qglgradientcache_p.h index 16285722e3..5654c9bdc7 100644 --- a/src/opengl/gl2paintengineex/qglgradientcache_p.h +++ b/src/opengl/gl2paintengineex/qglgradientcache_p.h @@ -39,6 +39,9 @@ ** ****************************************************************************/ +#ifndef QGLGRADIENTCACHE_P_H +#define QGLGRADIENTCACHE_P_H + // // W A R N I N G // ------------- @@ -99,3 +102,4 @@ private: QT_END_NAMESPACE +#endif // QGLGRADIENTCACHE_P_H diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h index 8eeee334f5..3ade720a15 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QGRAPHICSCONTEXT_OPENGL2_P_H -#define QGRAPHICSCONTEXT_OPENGL2_P_H +#ifndef QPAINTENGINEEX_OPENGL2_P_H +#define QPAINTENGINEEX_OPENGL2_P_H // // W A R N I N G @@ -322,4 +322,4 @@ void QGL2PaintEngineExPrivate::setVertexAttributePointer(unsigned int arrayIndex QT_END_NAMESPACE -#endif +#endif // QPAINTENGINEEX_OPENGL2_P_H -- cgit v1.2.3