qml: Remove unneeded copy-ctor and copy-assignment operator
authorSérgio Martins <sergio.martins@kdab.com>
Sun, 19 Jul 2015 18:04:41 +0000 (19:04 +0100)
committerSimon Hausmann <simon.hausmann@theqtcompany.com>
Mon, 20 Jul 2015 19:30:33 +0000 (19:30 +0000)
It's passed by value all over the place, so make it trivially-copyable

Change-Id: I6710529b3d9a70c94f02c9c3e505658817de0898
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
src/qml/jsruntime/qv4global_p.h

index 6d7135c..759c679 100644 (file)
@@ -278,8 +278,6 @@ struct PropertyAttributes
             setConfigurable(!(f & Attr_NotConfigurable));
         }
     }
-    PropertyAttributes(const PropertyAttributes &other) : m_all(other.m_all) {}
-    PropertyAttributes & operator=(const PropertyAttributes &other) { m_all = other.m_all; return *this; }
 
     void setType(Type t) { m_type = t; type_set = true; }
     Type type() const { return type_set ? (Type)m_type : Generic; }