From df72fca65d3a04a1b28957823e6db956ec68ecff Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 9 Nov 2015 09:40:36 -1000 Subject: [PATCH] Minor header adjustment --- lib/mac/CocoaCommon.hpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/mac/CocoaCommon.hpp b/lib/mac/CocoaCommon.hpp index 089582c..6c6506e 100644 --- a/lib/mac/CocoaCommon.hpp +++ b/lib/mac/CocoaCommon.hpp @@ -13,13 +13,7 @@ public: NSPtr() = default; ~NSPtr() {[m_ptr release];} NSPtr(T&& recv) : m_ptr(recv) {} - NSPtr& operator=(T&& recv) - { - NSUInteger rc = [m_ptr retainCount]; - [m_ptr release]; - m_ptr = recv; - return *this; - } + NSPtr& operator=(T&& recv) {[m_ptr release]; m_ptr = recv; return *this;} NSPtr(const NSPtr& other) = delete; NSPtr(NSPtr&& other) = default; NSPtr& operator=(const NSPtr& other) = delete;