X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/81bed90ee42032b1a17b058fa08747690bf5cbca..74c34d22773e39b13fe0502798494b38f261a9e5:/include/wx/aui/floatpane.h diff --git a/include/wx/aui/floatpane.h b/include/wx/aui/floatpane.h index 6e98d624b9..8d95b8cfe3 100644 --- a/include/wx/aui/floatpane.h +++ b/include/wx/aui/floatpane.h @@ -17,6 +17,7 @@ // ---------------------------------------------------------------------------- #include "wx/defs.h" +#include "wx/weakref.h" #if wxUSE_AUI @@ -30,8 +31,6 @@ class WXDLLIMPEXP_AUI wxAuiFloatingFrame : public wxAuiFloatingFrameBaseClass { - friend class wxAuiManager; - public: wxAuiFloatingFrame(wxWindow* parent, wxAuiManager* owner_mgr, @@ -46,7 +45,6 @@ public: wxAuiManager* GetOwnerManager() const; protected: - void SetOwnerManager(wxAuiManager* owner_mgr); virtual void OnMoveStart(); virtual void OnMoving(const wxRect& window_rect, wxDirection dir); virtual void OnMoveFinished(); @@ -69,7 +67,7 @@ private: wxSize m_last_size; wxDirection m_lastDirection; - wxAuiManager* m_owner_mgr; + wxWeakRef m_owner_mgr; wxAuiManager m_mgr; #ifndef SWIG