Browse Source

win-ivcam: Remove and prohibit useless member functions

Dmitry-Me 7 years ago
parent
commit
ecf508269d

+ 0 - 2
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()
 {

+ 2 - 2
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();