From 7e4cd9f1c18c8e243716ddb19a8b7fbaae44fe69 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 30 Jan 2022 10:14:44 +0100 Subject: [PATCH] Get rid of unnecessary friend classes --- include/wx/propgrid/manager.h | 1 - include/wx/propgrid/property.h | 1 - include/wx/propgrid/propgridiface.h | 3 --- interface/wx/propgrid/property.h | 1 - 4 files changed, 6 deletions(-) diff --git a/include/wx/propgrid/manager.h b/include/wx/propgrid/manager.h index c0c5dc2d9c..3d6be64f6e 100644 --- a/include/wx/propgrid/manager.h +++ b/include/wx/propgrid/manager.h @@ -168,7 +168,6 @@ class WXDLLIMPEXP_PROPGRID wxPropertyGridManager : public wxPanel, public wxPropertyGridInterface { wxDECLARE_CLASS(wxPropertyGridManager); - friend class wxPropertyGridPage; public: #ifndef SWIG diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index 6165daa556..14c4508920 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -2146,7 +2146,6 @@ protected: // Category (caption) property. class WXDLLIMPEXP_PROPGRID wxPropertyCategory : public wxPGProperty { - friend class wxPropertyGrid; friend class wxPropertyGridPageState; WX_PG_DECLARE_PROPERTY_CLASS(wxPropertyCategory) public: diff --git a/include/wx/propgrid/propgridiface.h b/include/wx/propgrid/propgridiface.h index 315cab9944..9eb91579ba 100644 --- a/include/wx/propgrid/propgridiface.h +++ b/include/wx/propgrid/propgridiface.h @@ -1160,9 +1160,6 @@ private: return m_pState->GetGrid(); } - - friend class wxPropertyGrid; - friend class wxPropertyGridManager; }; #endif // wxUSE_PROPGRID diff --git a/interface/wx/propgrid/property.h b/interface/wx/propgrid/property.h index 92c5474e22..ba9b61a51d 100644 --- a/interface/wx/propgrid/property.h +++ b/interface/wx/propgrid/property.h @@ -2940,7 +2940,6 @@ public: */ class wxPropertyCategory : public wxPGProperty { - friend class wxPropertyGrid; friend class wxPropertyGridPageState; public: