From 4eab96732eda458f75efdea99ecea388d0ffbb4a Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Sat, 15 Sep 2012 17:31:44 +0200 Subject: concurrent: 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. Also, cpp files should include their own headers first (but below config.h) Change-Id: I902c8936382f5c1a8e0de7dbf49e5423f9b72bbe Reviewed-by: Lars Knoll --- src/concurrent/qfutureinterface.cpp | 4 ++-- src/concurrent/qfuturesynchronizer.h | 6 +++--- src/concurrent/qfuturewatcher.cpp | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/concurrent') diff --git a/src/concurrent/qfutureinterface.cpp b/src/concurrent/qfutureinterface.cpp index 9a273a1076..0836ad029a 100644 --- a/src/concurrent/qfutureinterface.cpp +++ b/src/concurrent/qfutureinterface.cpp @@ -44,13 +44,13 @@ #ifndef QT_NO_QFUTURE +#include "qfutureinterface_p.h" + #include #include #include #include -#include "qfutureinterface_p.h" - QT_BEGIN_NAMESPACE enum { diff --git a/src/concurrent/qfuturesynchronizer.h b/src/concurrent/qfuturesynchronizer.h index 3106dd44ac..36208d7a35 100644 --- a/src/concurrent/qfuturesynchronizer.h +++ b/src/concurrent/qfuturesynchronizer.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QFUTRUESYNCHRONIZER_H -#define QFUTRUESYNCHRONIZER_H +#ifndef QFUTURESYNCHRONIZER_H +#define QFUTURESYNCHRONIZER_H #include @@ -119,4 +119,4 @@ QT_END_HEADER #endif // QT_NO_CONCURRENT -#endif // QFUTRUESYNCHRONIZER_H +#endif // QFUTURESYNCHRONIZER_H diff --git a/src/concurrent/qfuturewatcher.cpp b/src/concurrent/qfuturewatcher.cpp index eb5fb0e18d..081b21cdd3 100644 --- a/src/concurrent/qfuturewatcher.cpp +++ b/src/concurrent/qfuturewatcher.cpp @@ -43,13 +43,13 @@ #ifndef QT_NO_QFUTURE +#include "qfuturewatcher_p.h" + #include #include #include #include -#include "qfuturewatcher_p.h" - QT_BEGIN_NAMESPACE /*! \class QFutureWatcher -- cgit v1.2.3