From 20db24893b3b2a816bf82954ae9bdef243278b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 13 Aug 2022 23:43:57 +0200 Subject: Minor changes. --- c/wcharptr.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'c/wcharptr.cpp') diff --git a/c/wcharptr.cpp b/c/wcharptr.cpp index f36c620..f659767 100644 --- a/c/wcharptr.cpp +++ b/c/wcharptr.cpp @@ -24,7 +24,6 @@ WcharPtr WcharPtr::Copy(const wchar_t* const src) return dst; } - WcharPtr::WcharPtr() noexcept {} WcharPtr::~WcharPtr() noexcept @@ -59,7 +58,7 @@ WcharPtr& WcharPtr::operator=(WcharPtr&& other) noexcept wchar_t* WcharPtr::Release() noexcept { - wchar_t* p2 = m_p; + wchar_t* const p = m_p; m_p = nullptr; - return p2; + return p; } -- cgit v1.2.3