From b786c86b912fc0b602eeeaba22edcd1ca1bb1eb5 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Mon, 29 Mar 2021 13:37:01 +0200 Subject: [PATCH] QList: replace typedef with using Change-Id: Ie3fa605cf05d65ca422df738dcce1fa49d6371c7 Reviewed-by: Andrei Golubev Reviewed-by: Giuseppe D'Angelo --- src/corelib/tools/qlist.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index b50cd9090f..841deb02a1 100644 --- a/src/corelib/tools/qlist.h +++ b/src/corelib/tools/qlist.h @@ -132,11 +132,11 @@ public: class iterator { T *i = nullptr; public: - typedef std::random_access_iterator_tag iterator_category; - typedef qsizetype difference_type; - typedef T value_type; - typedef T *pointer; - typedef T &reference; + using iterator_category = std::random_access_iterator_tag; + using difference_type = qsizetype; + using value_type = T; + using pointer = T *; + using reference = T &; inline constexpr iterator() = default; inline iterator(T *n) : i(n) {} @@ -167,11 +167,11 @@ public: class const_iterator { const T *i = nullptr; public: - typedef std::random_access_iterator_tag iterator_category; - typedef qsizetype difference_type; - typedef T value_type; - typedef const T *pointer; - typedef const T &reference; + using iterator_category = std::random_access_iterator_tag; + using difference_type = qsizetype; + using value_type = T; + using pointer = const T *; + using reference = const T &; inline constexpr const_iterator() = default; inline const_iterator(const T *n) : i(n) {}