Make wxDataViewRendererBase::DestroyEditControl() private

This method is only supposed to be used by this class and not any
derived classes, so prevent it from being used accidentally.

No real changes.
This commit is contained in:
Vadim Zeitlin 2018-02-04 22:20:22 +01:00
parent 48fb2b42b1
commit 77231f5907

View File

@ -241,9 +241,6 @@ protected:
// (typically selection with dark background). For internal use only.
virtual bool IsHighlighted() const = 0;
// Called from {Cancel,Finish}Editing() to cleanup m_editorCtrl
void DestroyEditControl();
// Helper of PrepareForItem() also used in StartEditing(): returns the
// value checking that its type matches our GetVariantType().
wxVariant CheckedGetValue(const wxDataViewModel* model,
@ -261,7 +258,10 @@ protected:
// renderer is required
wxDataViewCtrl* GetView() const;
protected:
private:
// Called from {Called,Finish}Editing() and dtor to cleanup m_editorCtrl
void DestroyEditControl();
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewRendererBase);
};