From 77231f59076486f396d6baff0fad066dadbe4675 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 4 Feb 2018 22:20:22 +0100 Subject: [PATCH] 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. --- include/wx/dvrenderers.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/wx/dvrenderers.h b/include/wx/dvrenderers.h index b672b88f51..0d2615b659 100644 --- a/include/wx/dvrenderers.h +++ b/include/wx/dvrenderers.h @@ -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); };