From 3ca2594c3a0219944e10490005e092f8d1ecc5c8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 22 Oct 2023 17:50:56 +0200 Subject: [PATCH] Rename m_pSampleMultiButtonEditor in propgrid sample too Similar to the previous commit, just rename a member variable to avoid using "p" prefix for it which was inconsistent with the other variables in the same class. --- samples/propgrid/propgrid.cpp | 4 ++-- samples/propgrid/propgrid.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index afb97e9823..0730127203 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -1541,7 +1541,7 @@ void FormMain::PopulateWithExamples () // // Test wxSampleMultiButtonEditor pg->Append( new wxLongStringProperty("MultipleButtons", wxPG_LABEL) ); - pg->SetPropertyEditor("MultipleButtons", m_pSampleMultiButtonEditor ); + pg->SetPropertyEditor("MultipleButtons", m_sampleMultiButtonEditor ); // Test SingleChoiceProperty pg->Append( new SingleChoiceProperty("SingleChoiceProperty") ); @@ -2103,7 +2103,7 @@ FormMain::FormMain(const wxString& title) wxPropertyGridInterface::RegisterAdditionalEditors(); // Register our sample custom editors - m_pSampleMultiButtonEditor = + m_sampleMultiButtonEditor = wxPropertyGrid::RegisterEditorClass(new wxSampleMultiButtonEditor()); m_panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL); diff --git a/samples/propgrid/propgrid.h b/samples/propgrid/propgrid.h index 493adf57d1..17d3cb6b68 100644 --- a/samples/propgrid/propgrid.h +++ b/samples/propgrid/propgrid.h @@ -111,7 +111,7 @@ public: wxLogWindow* m_logWindow; #endif - wxPGEditor* m_pSampleMultiButtonEditor; + wxPGEditor* m_sampleMultiButtonEditor; wxPGChoices m_combinedFlags; wxMenuItem* m_itemCatColours;