aboutsummaryrefslogtreecommitdiff
path: root/c/wcharptr.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-13 23:43:57 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-13 23:43:57 +0200
commit20db24893b3b2a816bf82954ae9bdef243278b4d (patch)
treed55bba231b377af53ab31b5346fbe7e6a620c535 /c/wcharptr.cpp
parent5fd7a33246d786ee3c7a8d643ff332af793ffa5d (diff)
downloadEpisodeBrowser-20db24893b3b2a816bf82954ae9bdef243278b4d.tar.gz
Minor changes.
Diffstat (limited to 'c/wcharptr.cpp')
-rw-r--r--c/wcharptr.cpp5
1 files changed, 2 insertions, 3 deletions
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;
}