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:
@@ -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
|
||||
|
Reference in New Issue
Block a user