diff options
author | Sergio Ahumada <[email protected]> | 2012-09-15 16:51:51 +0200 |
---|---|---|
committer | Qt by Nokia <[email protected]> | 2012-09-15 23:54:23 +0200 |
commit | 9bedada232fb821f1fba2c1bdbd24702947dcaed (patch) | |
tree | 70c4847bc269eb4551a05afc6b0de16d168b7575 | |
parent | 7329ad3ee59fedc68758289677f3ece617858708 (diff) |
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 <[email protected]>
-rw-r--r-- | src/gui/image/qiconloader_p.h | 8 | ||||
-rw-r--r-- | src/gui/image/qpixmap_raster_p.h | 6 | ||||
-rw-r--r-- | src/gui/image/qplatformpixmap.h | 6 | ||||
-rw-r--r-- | src/gui/kernel/qopenglcontext_p.h | 6 | ||||
-rw-r--r-- | src/gui/kernel/qplatformopenglcontext.h | 6 | ||||
-rw-r--r-- | src/gui/kernel/qplatformscreen_p.h | 6 | ||||
-rw-r--r-- | src/gui/kernel/qplatformwindow_p.h | 6 | ||||
-rw-r--r-- | src/gui/opengl/qopenglgradientcache_p.h | 4 | ||||
-rw-r--r-- | src/gui/opengl/qopengltextureglyphcache_p.h | 6 | ||||
-rw-r--r-- | src/gui/painting/qdrawhelper_mips_dsp_p.h | 6 | ||||
-rw-r--r-- | src/gui/painting/qt_mips_asm_dsp.h | 6 | ||||
-rw-r--r-- | src/gui/text/qglyphrun.h | 6 | ||||
-rw-r--r-- | src/gui/text/qglyphrun_p.h | 8 | ||||
-rw-r--r-- | src/opengl/gl2paintengineex/qglgradientcache_p.h | 4 | ||||
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h | 6 |
15 files changed, 49 insertions, 41 deletions
diff --git a/src/gui/image/qiconloader_p.h b/src/gui/image/qiconloader_p.h index bd990d0d53b..328ded606bc 100644 --- a/src/gui/image/qiconloader_p.h +++ b/src/gui/image/qiconloader_p.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QDESKTOPICON_P_H -#define QDESKTOPICON_P_H +#ifndef QICONLOADER_P_H +#define QICONLOADER_P_H #ifndef QT_NO_ICON // @@ -187,6 +187,6 @@ private: QT_END_NAMESPACE -#endif // QDESKTOPICON_P_H +#endif // QT_NO_ICON -#endif //QT_NO_ICON +#endif // QICONLOADER_P_H diff --git a/src/gui/image/qpixmap_raster_p.h b/src/gui/image/qpixmap_raster_p.h index 8e1a8ccc03b..cfc6a9b323c 100644 --- a/src/gui/image/qpixmap_raster_p.h +++ b/src/gui/image/qpixmap_raster_p.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QPIXMAPDATA_RASTER_P_H -#define QPIXMAPDATA_RASTER_P_H +#ifndef QPIXMAP_RASTER_P_H +#define QPIXMAP_RASTER_P_H // // W A R N I N G @@ -95,6 +95,6 @@ private: QT_END_NAMESPACE -#endif // QPIXMAPDATA_RASTER_P_H +#endif // QPIXMAP_RASTER_P_H diff --git a/src/gui/image/qplatformpixmap.h b/src/gui/image/qplatformpixmap.h index 21bcfcd5d56..c7396bbef35 100644 --- a/src/gui/image/qplatformpixmap.h +++ b/src/gui/image/qplatformpixmap.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QPIXMAPDATA_P_H -#define QPIXMAPDATA_P_H +#ifndef QPLATFORMPIXMAP_H +#define QPLATFORMPIXMAP_H // // W A R N I N G @@ -157,4 +157,4 @@ QT_END_NAMESPACE QT_END_HEADER -#endif // QPIXMAPDATA_P_H +#endif // QPLATFORMPIXMAP_H diff --git a/src/gui/kernel/qopenglcontext_p.h b/src/gui/kernel/qopenglcontext_p.h index ac72b76ea4f..b07ac0ac25e 100644 --- a/src/gui/kernel/qopenglcontext_p.h +++ b/src/gui/kernel/qopenglcontext_p.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QGUIGLCONTEXT_P_H -#define QGUIGLCONTEXT_P_H +#ifndef QOPENGLCONTEXT_P_H +#define QOPENGLCONTEXT_P_H #ifndef QT_NO_OPENGL @@ -251,4 +251,4 @@ QT_END_NAMESPACE QT_END_HEADER #endif // QT_NO_OPENGL -#endif // QGUIGLCONTEXT_P_H +#endif // QOPENGLCONTEXT_P_H diff --git a/src/gui/kernel/qplatformopenglcontext.h b/src/gui/kernel/qplatformopenglcontext.h index 466c81d076d..e505e2efc6b 100644 --- a/src/gui/kernel/qplatformopenglcontext.h +++ b/src/gui/kernel/qplatformopenglcontext.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QPLATFORMGLCONTEXT_H -#define QPLATFORMGLCONTEXT_H +#ifndef QPLATFORMOPENGLCONTEXT_H +#define QPLATFORMOPENGLCONTEXT_H // // W A R N I N G @@ -104,4 +104,4 @@ QT_END_HEADER #endif // QT_NO_OPENGL -#endif // QPLATFORMGLCONTEXT_H +#endif // QPLATFORMOPENGLCONTEXT_H diff --git a/src/gui/kernel/qplatformscreen_p.h b/src/gui/kernel/qplatformscreen_p.h index ced66be8d7e..812c10f41c1 100644 --- a/src/gui/kernel/qplatformscreen_p.h +++ b/src/gui/kernel/qplatformscreen_p.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QPLATFORMSCREEN_QPA_P_H -#define QPLATFORMSCREEN_QPA_P_H +#ifndef QPLATFORMSCREEN_P_H +#define QPLATFORMSCREEN_P_H // // W A R N I N G @@ -71,4 +71,4 @@ QT_END_NAMESPACE QT_END_HEADER -#endif // QPLATFORMSCREEN_QPA_P_H +#endif // QPLATFORMSCREEN_P_H diff --git a/src/gui/kernel/qplatformwindow_p.h b/src/gui/kernel/qplatformwindow_p.h index 84a4a880597..12e2e607a6f 100644 --- a/src/gui/kernel/qplatformwindow_p.h +++ b/src/gui/kernel/qplatformwindow_p.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QPLATFORMWINDOW_QPA_P_H -#define QPLATFORMWINDOW_QPA_P_H +#ifndef QPLATFORMWINDOW_P_H +#define QPLATFORMWINDOW_P_H // // W A R N I N G @@ -71,4 +71,4 @@ QT_END_NAMESPACE QT_END_HEADER -#endif // QPLATFORMWINDOW_QPA_P_H +#endif // QPLATFORMWINDOW_P_H diff --git a/src/gui/opengl/qopenglgradientcache_p.h b/src/gui/opengl/qopenglgradientcache_p.h index 7acc8c1d9d0..47837e5673c 100644 --- a/src/gui/opengl/qopenglgradientcache_p.h +++ b/src/gui/opengl/qopenglgradientcache_p.h @@ -39,6 +39,9 @@ ** ****************************************************************************/ +#ifndef QOPENGLGRADIENTCACHE_P_H +#define QOPENGLGRADIENTCACHE_P_H + // // W A R N I N G // ------------- @@ -99,3 +102,4 @@ private: QT_END_NAMESPACE +#endif // QOPENGLGRADIENTCACHE_P_H diff --git a/src/gui/opengl/qopengltextureglyphcache_p.h b/src/gui/opengl/qopengltextureglyphcache_p.h index 4b6101e7c9d..4ccac0e6bac 100644 --- a/src/gui/opengl/qopengltextureglyphcache_p.h +++ b/src/gui/opengl/qopengltextureglyphcache_p.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QOPENTEXTUREGLYPHCACHE_P_H -#define QOPENTEXTUREGLYPHCACHE_P_H +#ifndef QOPENGLTEXTUREGLYPHCACHE_P_H +#define QOPENGLTEXTUREGLYPHCACHE_P_H // // W A R N I N G @@ -166,5 +166,5 @@ private: QT_END_NAMESPACE -#endif +#endif // QOPENGLTEXTUREGLYPHCACHE_P_H diff --git a/src/gui/painting/qdrawhelper_mips_dsp_p.h b/src/gui/painting/qdrawhelper_mips_dsp_p.h index 818b27ce21a..7988471b38e 100644 --- a/src/gui/painting/qdrawhelper_mips_dsp_p.h +++ b/src/gui/painting/qdrawhelper_mips_dsp_p.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QDRAWHELPER_MIPS_P_H -#define QDRAWHELPER_MIPS_P_H +#ifndef QDRAWHELPER_MIPS_DSP_P_H +#define QDRAWHELPER_MIPS_DSP_P_H #include <private/qdrawhelper_p.h> @@ -164,4 +164,4 @@ extern "C" void qConvertRgb16To32_asm_mips_dspr2(quint32 *dest, const quint16 * QT_END_NAMESPACE -#endif // QDRAWHELPER_MIPS_P_H +#endif // QDRAWHELPER_MIPS_DSP_P_H diff --git a/src/gui/painting/qt_mips_asm_dsp.h b/src/gui/painting/qt_mips_asm_dsp.h index 088831f6e46..fb5dc4f0522 100644 --- a/src/gui/painting/qt_mips_asm_dsp.h +++ b/src/gui/painting/qt_mips_asm_dsp.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QT_MIPS_DSP_H__ -#define QT_MIPS_DSP_H__ +#ifndef QT_MIPS_ASM_DSP_H +#define QT_MIPS_ASM_DSP_H #define zero $0 #define AT $1 @@ -246,4 +246,4 @@ LEAF_MIPS32R2(symbol) \ or \out_1, \scratch1, \scratch3 .endm -#endif //QT_MIPS_DSP_H__ +#endif // QT_MIPS_ASM_DSP_H diff --git a/src/gui/text/qglyphrun.h b/src/gui/text/qglyphrun.h index 37e9a72bbe9..80c796fb504 100644 --- a/src/gui/text/qglyphrun.h +++ b/src/gui/text/qglyphrun.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QOpenGLYPHRUN_H -#define QOpenGLYPHRUN_H +#ifndef QGLYPHRUN_H +#define QGLYPHRUN_H #include <QtCore/qsharedpointer.h> #include <QtCore/qvector.h> @@ -134,4 +134,4 @@ QT_END_HEADER #endif // QT_NO_RAWFONT -#endif // QOpenGLYPHS_H +#endif // QGLYPHRUN_H diff --git a/src/gui/text/qglyphrun_p.h b/src/gui/text/qglyphrun_p.h index b75862b7621..69269342246 100644 --- a/src/gui/text/qglyphrun_p.h +++ b/src/gui/text/qglyphrun_p.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QOpenGLYPHRUN_P_H -#define QOpenGLYPHRUN_P_H +#ifndef QGLYPHRUN_P_H +#define QGLYPHRUN_P_H // // W A R N I N G @@ -113,6 +113,6 @@ QT_END_NAMESPACE QT_END_HEADER -#endif // QOpenGLYPHS_P_H - #endif // QT_NO_RAWFONT + +#endif // QGLYPHRUN_P_H diff --git a/src/opengl/gl2paintengineex/qglgradientcache_p.h b/src/opengl/gl2paintengineex/qglgradientcache_p.h index 16285722e31..5654c9bdc73 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 8eeee334f5a..3ade720a154 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 |