From 0051a4f89670746c09db10f5d5839a77214e9fce Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 29 Jan 2017 14:26:41 +0000 Subject: [PATCH] Remove unneeded assignment to null in RefPtr::release --- src/ref_ptr.hh | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ref_ptr.hh b/src/ref_ptr.hh index 279686b3..d9fa4ab5 100644 --- a/src/ref_ptr.hh +++ b/src/ref_ptr.hh @@ -99,7 +99,6 @@ private: { if (m_ptr) Policy::dec_ref(m_ptr, this); - m_ptr = nullptr; } [[gnu::always_inline]]