diff options
author | Sona Kurazyan <[email protected]> | 2020-10-13 16:31:47 +0200 |
---|---|---|
committer | Sona Kurazyan <[email protected]> | 2020-10-14 21:24:26 +0200 |
commit | 9ded4739140e7e30aa386a9800c26afdbf952fd3 (patch) | |
tree | eff885ee8a316d283f00d215a20807cc794c84ff /src/concurrent/qtconcurrentfunctionwrappers.h | |
parent | e1926e50606d11988ed99530ea073ffe15177137 (diff) |
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 <[email protected]>
Reviewed-by: Karsten Heimrich <[email protected]>
Diffstat (limited to 'src/concurrent/qtconcurrentfunctionwrappers.h')
-rw-r--r-- | src/concurrent/qtconcurrentfunctionwrappers.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/concurrent/qtconcurrentfunctionwrappers.h b/src/concurrent/qtconcurrentfunctionwrappers.h index be954167598..c8aab34b876 100644 --- a/src/concurrent/qtconcurrentfunctionwrappers.h +++ b/src/concurrent/qtconcurrentfunctionwrappers.h @@ -108,19 +108,19 @@ struct ReduceResultType; template <class U, class V> struct ReduceResultType<void(*)(U&,V)> { - typedef U ResultType; + using ResultType = U; }; template <class T, class C, class U> struct ReduceResultType<T(C::*)(U)> { - typedef C ResultType; + using ResultType = C; }; template <class U, class V> struct ReduceResultType<std::function<void(U&, V)>> { - typedef U ResultType; + using ResultType = U; }; template <typename R, typename ...A> @@ -133,13 +133,13 @@ struct ReduceResultType<R(*)(A...)> template <class U, class V> struct ReduceResultType<void(*)(U&,V) noexcept> { - typedef U ResultType; + using ResultType = U; }; template <class T, class C, class U> struct ReduceResultType<T(C::*)(U) noexcept> { - typedef C ResultType; + using ResultType = C; }; #endif |