Minor header adjustment

This commit is contained in:
Jack Andersen 2015-11-09 09:40:36 -10:00
parent a13758dca5
commit df72fca65d
1 changed files with 1 additions and 7 deletions

View File

@ -13,13 +13,7 @@ public:
NSPtr() = default; NSPtr() = default;
~NSPtr() {[m_ptr release];} ~NSPtr() {[m_ptr release];}
NSPtr(T&& recv) : m_ptr(recv) {} NSPtr(T&& recv) : m_ptr(recv) {}
NSPtr& operator=(T&& recv) NSPtr& operator=(T&& recv) {[m_ptr release]; m_ptr = recv; return *this;}
{
NSUInteger rc = [m_ptr retainCount];
[m_ptr release];
m_ptr = recv;
return *this;
}
NSPtr(const NSPtr& other) = delete; NSPtr(const NSPtr& other) = delete;
NSPtr(NSPtr&& other) = default; NSPtr(NSPtr&& other) = default;
NSPtr& operator=(const NSPtr& other) = delete; NSPtr& operator=(const NSPtr& other) = delete;