diff options
Diffstat (limited to 'src/corelib/tools/qiterator.h')
-rw-r--r-- | src/corelib/tools/qiterator.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/corelib/tools/qiterator.h b/src/corelib/tools/qiterator.h index c315b77c85..16c2d7f07c 100644 --- a/src/corelib/tools/qiterator.h +++ b/src/corelib/tools/qiterator.h @@ -205,20 +205,17 @@ public: return std::pair<Key, T>(i.key(), i.value()); } - struct pointer { - pointer(value_type&& r_) - : r(std::move(r_)) - {} + struct pointer + { + pointer(value_type &&r_) : r(std::move(r_)) { } pointer() = default; pointer(const pointer &other) = default; pointer(pointer &&other) = default; - pointer& operator=(const pointer &other) = default; - pointer& operator=(pointer &&other) = default; + pointer &operator=(const pointer &other) = default; + pointer &operator=(pointer &&other) = default; - value_type& operator*() const { - return r; - } + value_type &operator*() const { return r; } value_type r; const value_type *operator->() const { |