[vlc-commits] demux: adaptive: inheritables: remove copy assignment

Francois Cartegnie git at videolan.org
Tue Jan 5 20:25:37 UTC 2021


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Dec 31 10:28:09 2020 +0100| [ad34063b4c9a7461748171be0c3c9e0383ee5194] | committer: Francois Cartegnie

demux: adaptive: inheritables: remove copy assignment

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

 modules/demux/adaptive/playlist/Inheritables.hpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/demux/adaptive/playlist/Inheritables.hpp b/modules/demux/adaptive/playlist/Inheritables.hpp
index d76908379a..7e07c48cce 100644
--- a/modules/demux/adaptive/playlist/Inheritables.hpp
+++ b/modules/demux/adaptive/playlist/Inheritables.hpp
@@ -55,6 +55,8 @@ namespace adaptive
                 };
                 AbstractAttr(enum Type);
                 virtual ~AbstractAttr();
+                AbstractAttr(const AbstractAttr &) = delete;
+                AbstractAttr & operator=(const AbstractAttr &) = delete;
                 Type getType() const;
                 bool operator ==(const AbstractAttr &t) const { return type == t.getType(); }
                 bool operator !=(const AbstractAttr &t) const { return type != t.getType(); }
@@ -71,6 +73,8 @@ namespace adaptive
             public:
                 AttrsNode( Type, AttrsNode * = NULL );
                 ~AttrsNode();
+                AttrsNode(const AttrsNode &) = delete;
+                AttrsNode & operator=(const AttrsNode &) = delete;
                 void addAttribute( AbstractAttr * );
                 void replaceAttribute( AbstractAttr * );
                 AbstractAttr * inheritAttribute(AbstractAttr::Type);
@@ -102,6 +106,8 @@ namespace adaptive
             public:
                 AttrWrapper(T v) : AbstractAttr(e) { value = v; }
                 virtual ~AttrWrapper() {}
+                AttrWrapper(const AttrWrapper &) = delete;
+                AttrWrapper<e, T> & operator=(const AttrWrapper<e, T> &) = delete;
                 operator const T&() const { return value; }
 
             protected:



More information about the vlc-commits mailing list