include/xot/pimpl.h in xot-0.1.35 vs include/xot/pimpl.h in xot-0.1.36

- old
+ new

@@ -32,10 +32,16 @@ This& operator = (const This& obj) { if (&obj == this) return *this; - this->reset(obj ? new T(*obj) : NULL); + if (!obj) + this->reset(); + else if (!this->get()) + this->reset(new T(*obj)); + else + *this->get() = *obj.get(); + return *this; } };// PImpl