diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2018-07-23 10:45:40 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2018-07-24 12:21:42 +0000 |
commit | f6943a712abd5cf1f213aeb5cb984a4ab61ae139 (patch) | |
tree | 5771391e68dd1d10e3af4cc43cf54a9b4e6de629 /src/libs/utils/algorithm.h | |
parent | 00c926b6b44c78c14095369aa908110a2f9e24a7 (diff) |
Utils: Modernize further
Many issues, mostly in headers, were not addressed in
e38410b76c40ffde33cf1ab405926cd243c4e48c
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-default-member-init
modernize-use-equals-default
Change-Id: I320a51726db881e582b898948d53735ebb06887a
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs/utils/algorithm.h')
-rw-r--r-- | src/libs/utils/algorithm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/utils/algorithm.h b/src/libs/utils/algorithm.h index 4a0d18e945..42dd638fbf 100644 --- a/src/libs/utils/algorithm.h +++ b/src/libs/utils/algorithm.h @@ -229,7 +229,7 @@ protected: Container *container; public: - typedef Container container_type; + using container_type = Container; explicit SetInsertIterator (Container &x) : container(&x) {} SetInsertIterator<Container> &operator=(const typename Container::value_type &value) @@ -253,7 +253,7 @@ template <class Container> Container *container; public: - typedef Container container_type; + using container_type = Container; explicit MapInsertIterator (Container &x) : container(&x) {} MapInsertIterator<Container> &operator=(const std::pair<const typename Container::key_type, typename Container::mapped_type> &value) |