Skip to content

Commit

Permalink
Streamline #include <type_traits>
Browse files Browse the repository at this point in the history
It's included by qglobal.h, so we get it for free in other headers.

Change-Id: I90072156e313271a5354a39cbf78a83a6885c431
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
dangelog committed Jan 31, 2017
1 parent d258d69 commit 1b488d8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/corelib/global/qflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
#include <initializer_list>
#endif

#include <type_traits>

QT_BEGIN_NAMESPACE

class QFlag
Expand Down
1 change: 0 additions & 1 deletion src/corelib/global/qglobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#ifdef __cplusplus
# include <type_traits>
# include <cstddef>
# include <type_traits>
# include <utility>
#endif

Expand Down
2 changes: 0 additions & 2 deletions src/corelib/kernel/qobjectdefs_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
#pragma qt_sync_stop_processing
#endif

#include <type_traits>

QT_BEGIN_NAMESPACE


Expand Down
1 change: 0 additions & 1 deletion src/testlib/qtestcase.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@

#include <string.h>

#include <type_traits>
#ifndef QT_NO_EXCEPTIONS
# include <exception>
#endif // QT_NO_EXCEPTIONS
Expand Down

0 comments on commit 1b488d8

Please sign in to comment.