Commit d09232f3 authored by Ronan's avatar Ronan
Browse files

fix(PropertyContainer): create correctly private data

parent d4d2794c
......@@ -33,10 +33,16 @@ public:
// -----------------------------------------------------------------------------
PropertyContainer::PropertyContainer () : mPrivate(new PropertyContainerPrivate) {}
// Empty copy constructor. Don't change this pattern.
// PropertyContainer is an Entity component, not a simple structure.
// An Entity is UNIQUE.
PropertyContainer::PropertyContainer (const PropertyContainer &) {}
PropertyContainer::PropertyContainer (const PropertyContainer &) : mPrivate(new PropertyContainerPrivate) {}
PropertyContainer::~PropertyContainer () {
delete mPrivate;
}
PropertyContainer &PropertyContainer::operator= (const PropertyContainer &) {
return *this;
......
......@@ -33,9 +33,9 @@ class PropertyContainerPrivate;
class LINPHONE_PUBLIC PropertyContainer {
public:
PropertyContainer () = default;
PropertyContainer ();
PropertyContainer (const PropertyContainer &src);
virtual ~PropertyContainer () = default;
virtual ~PropertyContainer ();
PropertyContainer &operator= (const PropertyContainer &src);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment