From 3e4946fc3101befdbdada10662e8b2697a2fd8c3 Mon Sep 17 00:00:00 2001 From: Lauri Nurmi Date: Mon, 7 Aug 2023 12:09:11 +0300 Subject: [PATCH] Minor documentation syntax and orthography fixes Closes #23759. --- include/wx/combo.h | 2 +- include/wx/confbase.h | 2 +- include/wx/dlist.h | 2 +- include/wx/msw/ole/uuid.h | 2 +- include/wx/msw/private/msgdlg.h | 2 +- include/wx/propgrid/property.h | 4 ++-- include/wx/propgrid/propgridiface.h | 2 +- interface/wx/toplevel.h | 4 ++-- src/common/translation.cpp | 2 +- src/msw/frame.cpp | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/wx/combo.h b/include/wx/combo.h index 131b65b090..7c3161e294 100644 --- a/include/wx/combo.h +++ b/include/wx/combo.h @@ -365,7 +365,7 @@ public: // Call with enable as true to use a type of popup window that guarantees ability // to focus the popup control, and normal function of common native controls. - // This alternative popup window is usually a wxDialog, and as such it's parent + // This alternative popup window is usually a wxDialog, and as such its parent // frame will appear as if the focus has been lost from it. void UseAltPopupWindow( bool enable = true ) { diff --git a/include/wx/confbase.h b/include/wx/confbase.h index e25373b8e2..07d153618a 100644 --- a/include/wx/confbase.h +++ b/include/wx/confbase.h @@ -139,7 +139,7 @@ public: virtual bool GetFirstEntry(wxString& str, long& lIndex) const = 0; virtual bool GetNextEntry (wxString& str, long& lIndex) const = 0; // get number of entries/subgroups in the current group, with or without - // it's subgroups + // its subgroups virtual size_t GetNumberOfEntries(bool bRecursive = false) const = 0; virtual size_t GetNumberOfGroups(bool bRecursive = false) const = 0; diff --git a/include/wx/dlist.h b/include/wx/dlist.h index 243b46562c..44fcb019ab 100644 --- a/include/wx/dlist.h +++ b/include/wx/dlist.h @@ -339,7 +339,7 @@ public: void Assign(const wxDList &list) { wxASSERT_MSG( !list.m_destroy, - "copying list which owns it's elements is a bad idea" ); + "copying list which owns its elements is a bad idea" ); Clear(); m_destroy = list.m_destroy; m_nodeFirst = nullptr; diff --git a/include/wx/msw/ole/uuid.h b/include/wx/msw/ole/uuid.h index dd1544489e..4431cedf51 100644 --- a/include/wx/msw/ole/uuid.h +++ b/include/wx/msw/ole/uuid.h @@ -37,7 +37,7 @@ typedef unsigned char uchar; // ------------------------------------------------------------------ -// a class to store UUID and it's string representation +// a class to store UUID and its string representation // ------------------------------------------------------------------ // uses RPC functions to create/convert Universally Unique Identifiers diff --git a/include/wx/msw/private/msgdlg.h b/include/wx/msw/private/msgdlg.h index bff44a5f11..88dc6aa029 100644 --- a/include/wx/msw/private/msgdlg.h +++ b/include/wx/msw/private/msgdlg.h @@ -47,7 +47,7 @@ namespace wxMSWMessageDialog wxString btnCancelLabel; wxString btnHelpLabel; - // Will create a task dialog with it's parameters for it's creation + // Will create a task dialog with its parameters for its creation // stored in the provided TASKDIALOGCONFIG parameter. // NOTE: The wxMSWTaskDialogConfig object needs to remain accessible // during the subsequent call to TaskDialogIndirect(). diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index 664b07c094..128a8091cb 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -329,7 +329,7 @@ wxPG_PROP_CUSTOMIMAGE = 0x0008, // dialog and choice are ok). wxPG_PROP_NOEDITOR = 0x0010, -// Property is collapsed, ie. it's children are hidden. +// Property is collapsed, ie. its children are hidden. wxPG_PROP_COLLAPSED = 0x0020, // If property is selected, then indicates that validation failed for pending @@ -1521,7 +1521,7 @@ public: // Useful in SetAttribute etc. Returns true if actually did anything. bool RecreateEditor(); - // If property's editor is active, then update it's value. + // If property's editor is active, then update its value. void RefreshEditor(); // Sets an attribute for this property. diff --git a/include/wx/propgrid/propgridiface.h b/include/wx/propgrid/propgridiface.h index 52ee8ba714..f7aa3be6da 100644 --- a/include/wx/propgrid/propgridiface.h +++ b/include/wx/propgrid/propgridiface.h @@ -698,7 +698,7 @@ public: // of a property, if it is not the sole mean to edit the value. void LimitPropertyEditing( wxPGPropArg id, bool limit = true ); - // If state is shown in it's grid, refresh it now. + // If state is shown in its grid, refresh it now. virtual void RefreshGrid( wxPropertyGridPageState* state = nullptr ); #if wxPG_INCLUDE_ADVPROPS diff --git a/interface/wx/toplevel.h b/interface/wx/toplevel.h index 57c16b8b30..1e42b5ab8e 100644 --- a/interface/wx/toplevel.h +++ b/interface/wx/toplevel.h @@ -192,7 +192,7 @@ public: /** Returns a pointer to the button which is the default for this window, or - @c @NULL. The default button is the one activated by pressing the Enter + @NULL. The default button is the one activated by pressing the Enter key. */ wxWindow* GetDefaultItem() const; @@ -246,7 +246,7 @@ public: @param iconize If @true, iconizes the window; if @false, shows and restores it. - @see IsIconized(), Restore()(), wxIconizeEvent. + @see IsIconized(), Restore(), wxIconizeEvent. */ virtual void Iconize(bool iconize = true); diff --git a/src/common/translation.cpp b/src/common/translation.cpp index 0e3935eb50..eb8e680e28 100644 --- a/src/common/translation.cpp +++ b/src/common/translation.cpp @@ -947,7 +947,7 @@ wxMsgCatalogFile::~wxMsgCatalogFile() { } -// open disk file and read in it's contents +// open disk file and read in its contents bool wxMsgCatalogFile::LoadFile(const wxString& filename, wxPluralFormsCalculatorPtr& rPluralFormsCalculator) { diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 3c356eb952..99a0f10daa 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -760,7 +760,7 @@ bool wxFrame::HandleSize(int WXUNUSED(x), int WXUNUSED(y), WXUINT id) case SIZE_RESTORED: case SIZE_MAXIMIZED: // only do it it if we were iconized before, otherwise resizing the - // parent frame has a curious side effect of bringing it under it's + // parent frame has a curious side effect of bringing it under its // children if ( m_showCmd != SW_MINIMIZE ) break;