From ecf508269dc2ecfcd563aa2807dfce18dfef6d86 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Tue, 4 Sep 2018 17:40:54 +0300 Subject: [PATCH] win-ivcam: Remove and prohibit useless member functions --- plugins/win-ivcam/seg_library/SegServerImpl.cpp | 2 -- plugins/win-ivcam/seg_library/SegServerImpl.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/win-ivcam/seg_library/SegServerImpl.cpp b/plugins/win-ivcam/seg_library/SegServerImpl.cpp index 2f22e3d0a..3c6004dcb 100644 --- a/plugins/win-ivcam/seg_library/SegServerImpl.cpp +++ b/plugins/win-ivcam/seg_library/SegServerImpl.cpp @@ -36,7 +36,6 @@ SegServerImpl::SegServerImpl() m_sharedBuffer = NULL; } -SegServerImpl::SegServerImpl(SegServerImpl const&) {}; SegServerImpl::~SegServerImpl() { if (m_server) @@ -46,7 +45,6 @@ SegServerImpl::~SegServerImpl() } instance = nullptr; }; -SegServerImpl& SegServerImpl::operator=(const SegServerImpl &) { return *this; }; SegServer* SegServerImpl::CreateServer() { diff --git a/plugins/win-ivcam/seg_library/SegServerImpl.h b/plugins/win-ivcam/seg_library/SegServerImpl.h index bad7e6b8d..1373ccbc2 100644 --- a/plugins/win-ivcam/seg_library/SegServerImpl.h +++ b/plugins/win-ivcam/seg_library/SegServerImpl.h @@ -56,8 +56,8 @@ private: LPCTSTR m_sharedBuffer; SegServerImpl(); - SegServerImpl(SegServerImpl const& src); - SegServerImpl& operator=(const SegServerImpl & src); + SegServerImpl(SegServerImpl const& src) = delete; + SegServerImpl& operator=(const SegServerImpl & src) = delete; public: virtual ~SegServerImpl(); -- GitLab