Fix another instance of -Wdeprecated-copy.
Bug: chromium:1221591
PiperOrigin-RevId: 383264072
diff --git a/spdy/core/spdy_intrusive_list.h b/spdy/core/spdy_intrusive_list.h
index 2d9f749..3af2053 100644
--- a/spdy/core/spdy_intrusive_list.h
+++ b/spdy/core/spdy_intrusive_list.h
@@ -267,9 +267,10 @@
public:
typedef std::iterator<std::bidirectional_iterator_tag, QualifiedT> base;
- iterator_impl() : link_(nullptr) {}
+ iterator_impl() = default;
iterator_impl(QualifiedLinkT* link) : link_(link) {}
- iterator_impl(const iterator_impl& x) : link_(x.link_) {}
+ iterator_impl(const iterator_impl& x) = default;
+ iterator_impl& operator=(const iterator_impl& x) = default;
// Allow converting and comparing across iterators where the pointer
// assignment and comparisons (respectively) are allowed.
@@ -310,7 +311,7 @@
// Ensure iterators can access other iterators node directly.
template <typename U, typename V> friend class iterator_impl;
- QualifiedLinkT* link_;
+ QualifiedLinkT* link_ = nullptr;
};
// This bare link acts as the sentinel node.