QList: replace typedef with using

Change-Id: Ie3fa605cf05d65ca422df738dcce1fa49d6371c7
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
Fabian Kosmale 2021-03-29 13:37:01 +02:00
parent b050d4867f
commit b786c86b91

View File

@ -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) {}