Don't provide wxSharedClientDataContainer::m_data accessors
This is not really necessary and breaks encapsulation of this private method. It is enough to provide just a way to copy the data from another object as this is all that the derived classes really need.
This commit is contained in:
@@ -181,8 +181,10 @@ public:
|
||||
|
||||
protected:
|
||||
bool HasClientDataContainer() const { return m_data.get() != NULL; }
|
||||
wxSharedPtr<wxClientDataContainer> GetClientDataContainer() const { return m_data; }
|
||||
void SetClientDataContainer(wxSharedPtr<wxClientDataContainer> data) { m_data = data; }
|
||||
void CopyClientDataContainer(const wxSharedClientDataContainer& other)
|
||||
{
|
||||
m_data = other.m_data;
|
||||
}
|
||||
|
||||
private:
|
||||
// Helper function that will create m_data if it is currently NULL
|
||||
|
||||
Reference in New Issue
Block a user