Fix copying wxPGAttributeStorage

We need implement copy ctor and assignment operator because we are going to do a shallow copy of wxPGHashMapS2P data member and therefore we have to manually update reference counters of the objects being referenced in this map.
This commit is contained in:
Artur Wieczorek
2019-04-28 16:35:10 +02:00
parent 57aeaa3823
commit bd313b64ab
2 changed files with 36 additions and 4 deletions

View File

@@ -291,8 +291,11 @@ class WXDLLIMPEXP_PROPGRID wxPGAttributeStorage
{
public:
wxPGAttributeStorage();
wxPGAttributeStorage(const wxPGAttributeStorage& other);
~wxPGAttributeStorage();
wxPGAttributeStorage& operator=(const wxPGAttributeStorage& rhs);
void Set( const wxString& name, const wxVariant& value );
unsigned int GetCount() const { return (unsigned int) m_map.size(); }
wxVariant FindValue( const wxString& name ) const