[vlc-commits] connectioncontainer: Explicitely disable copy

Hugo Beauzée-Luyssen git at videolan.org
Fri Apr 17 13:31:18 CEST 2015


npapi-vlc | branch: cleanup | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Apr 17 12:58:11 2015 +0200| [84ccc9b24ce8915c45f55abc598f0c45f69a163b] | committer: Hugo Beauzée-Luyssen

connectioncontainer: Explicitely disable copy

Copy operations can't be generated anyway, but it keeps MSVC quiet

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=84ccc9b24ce8915c45f55abc598f0c45f69a163b
---

 activex/connectioncontainer.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/activex/connectioncontainer.h b/activex/connectioncontainer.h
index 1d2134e..e4227a9 100644
--- a/activex/connectioncontainer.h
+++ b/activex/connectioncontainer.h
@@ -41,6 +41,9 @@ public:
     VLCConnectionPoint(IConnectionPointContainer *p_cpc, REFIID iid);
     virtual ~VLCConnectionPoint();
 
+    VLCConnectionPoint(const VLCConnectionPoint&) = delete;
+    VLCConnectionPoint& operator=(const VLCConnectionPoint&) = delete;
+
     // IUnknown methods
     STDMETHODIMP QueryInterface(REFIID riid, void **ppv)
     {



More information about the vlc-commits mailing list