From 24952d0203b4d13ec57abe124fa06832bd45b2b1 Mon Sep 17 00:00:00 2001 From: PB Date: Sat, 23 Dec 2023 18:49:41 +0100 Subject: [PATCH] Fix confusing argument names in wxPersistentWindow docs Use the same argument name as in the actual code in the class constructor as well as the convenience function, instead of wrongly copypasted "book". See also 33de6dc (Fix confusing wxPersistentTLW ctor argument name, 2023-12-22). Closes #24158. --- interface/wx/persist/dataview.h | 2 +- interface/wx/persist/toplevel.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/wx/persist/dataview.h b/interface/wx/persist/dataview.h index b98896879b..865b1f64c3 100644 --- a/interface/wx/persist/dataview.h +++ b/interface/wx/persist/dataview.h @@ -39,4 +39,4 @@ public: }; /// Overload allowing persistence adapter creation for wxDataViewCtrl objects. -wxPersistentObject *wxCreatePersistentObject(wxDataViewCtrl *book); +wxPersistentObject *wxCreatePersistentObject(wxDataViewCtrl *control); diff --git a/interface/wx/persist/toplevel.h b/interface/wx/persist/toplevel.h index c8c4a7c822..2581e5f115 100644 --- a/interface/wx/persist/toplevel.h +++ b/interface/wx/persist/toplevel.h @@ -21,10 +21,10 @@ public: /** Constructor. - @param topwin + @param tlw The associated window. */ - wxPersistentTLW(wxTopLevelWindow *topwin); + wxPersistentTLW(wxTopLevelWindow *tlw); /** Save the current window geometry. @@ -39,4 +39,4 @@ public: /// Overload allowing persistence adapter creation for wxTopLevelWindow-derived /// objects. -wxPersistentObject *wxCreatePersistentObject(wxTopLevelWindow *book); +wxPersistentObject *wxCreatePersistentObject(wxTopLevelWindow *tlw);