From fd70f20ecf6417f6805c32fcd18844276024b38b Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 29 Dec 2025 06:43:31 +0100 Subject: fix: rope_fwd.inl: implementation hardening. Signed-off-by: Amlal El Mahrouss --- include/ocl/tproc/detail/rope_fwd.inl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/ocl/tproc/detail/rope_fwd.inl b/include/ocl/tproc/detail/rope_fwd.inl index 6951b20..e5d959e 100644 --- a/include/ocl/tproc/detail/rope_fwd.inl +++ b/include/ocl/tproc/detail/rope_fwd.inl @@ -14,7 +14,7 @@ namespace ocl::tproc { private: std::allocator_traits::size_type size_; - CharT *head_, tail_{}; + CharT *head_, *tail_{}; public: std::allocator_traits::size_type size() @@ -45,7 +45,7 @@ namespace ocl::tproc basic_rope::operator=( basic_rope&& other) { - impl_ = std::exchange(other.impl_); + impl_ = std::exchange(other.impl_, nullptr); return *this; } @@ -53,21 +53,21 @@ namespace ocl::tproc basic_rope::basic_rope( basic_rope&& other) { - impl_ = std::exchange(other.impl_); + impl_ = std::exchange(other.impl_, nullptr); } template basic_rope& basic_rope::operator=(basic_rope&& other) { - impl_ = std::exchange(other.impl_); + impl_ = std::exchange(other.impl_, nullptr); return *this; } template basic_rope::basic_rope(basic_rope&& other) { - impl_ = std::exchange(other.impl_); + impl_ = std::exchange(other.impl_, nullptr); } template -- cgit v1.2.3