From 9ded4739140e7e30aa386a9800c26afdbf952fd3 Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Tue, 13 Oct 2020 16:31:47 +0200 Subject: Minor cleanups based on API review - Be more more consistent when declaring type aliases. - Re-group include directives Change-Id: Ic521e9f7692e538cc98871bdeccd9644c9879089 Reviewed-by: Fabian Kosmale Reviewed-by: Karsten Heimrich --- src/concurrent/qtconcurrentfunctionwrappers.h | 10 +++++----- src/concurrent/qtconcurrentstoredfunctioncall.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/concurrent/qtconcurrentfunctionwrappers.h b/src/concurrent/qtconcurrentfunctionwrappers.h index be95416759..c8aab34b87 100644 --- a/src/concurrent/qtconcurrentfunctionwrappers.h +++ b/src/concurrent/qtconcurrentfunctionwrappers.h @@ -108,19 +108,19 @@ struct ReduceResultType; template struct ReduceResultType { - typedef U ResultType; + using ResultType = U; }; template struct ReduceResultType { - typedef C ResultType; + using ResultType = C; }; template struct ReduceResultType> { - typedef U ResultType; + using ResultType = U; }; template @@ -133,13 +133,13 @@ struct ReduceResultType template struct ReduceResultType { - typedef U ResultType; + using ResultType = U; }; template struct ReduceResultType { - typedef C ResultType; + using ResultType = C; }; #endif diff --git a/src/concurrent/qtconcurrentstoredfunctioncall.h b/src/concurrent/qtconcurrentstoredfunctioncall.h index 44a93360d8..f7e9e03e21 100644 --- a/src/concurrent/qtconcurrentstoredfunctioncall.h +++ b/src/concurrent/qtconcurrentstoredfunctioncall.h @@ -44,10 +44,10 @@ #ifndef QT_NO_CONCURRENT #include -#include - #include +#include + QT_BEGIN_NAMESPACE #ifndef Q_QDOC -- cgit v1.2.3