From 30ac43e1952d1de627073fffdf31de515afaa19b Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sun, 12 Apr 2020 18:48:14 -0400 Subject: [PATCH] Fix more comments ("it's" -> "its") --- src/FFmpeg.h | 2 +- src/FileNames.h | 2 +- src/export/ExportFFmpegDialogs.cpp | 8 ++++---- src/export/ExportFFmpegDialogs.h | 4 ++-- src/export/ExportPCM.cpp | 2 +- src/widgets/KeyView.cpp | 4 ++-- src/widgets/NumericTextCtrl.h | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/FFmpeg.h b/src/FFmpeg.h index 2442a7bc4..3d0ab31c7 100644 --- a/src/FFmpeg.h +++ b/src/FFmpeg.h @@ -375,7 +375,7 @@ private: FFmpegLibs *PickFFmpegLibs(); ///! Helper function - destroys FFmpegLibs object if there is no need for it -///! anymore, or just decrements it's reference count +///! anymore, or just decrements its reference count void DropFFmpegLibs(); // This object allows access to the AVFormatContext, diff --git a/src/FileNames.h b/src/FileNames.h index c1523f78b..4e52a6ce1 100644 --- a/src/FileNames.h +++ b/src/FileNames.h @@ -90,7 +90,7 @@ namespace FileNames wxString LowerCaseAppNameInPath( const wxString & dirIn); /** \brief Audacity user data directory * - * Where audacity keeps it's settings and other user data squirreled away, + * Where audacity keeps its settings and other user data squirreled away, * by default ~/.audacity-data/ on Unix, Application Data/Audacity on * windows system */ FilePath DataDir(); diff --git a/src/export/ExportFFmpegDialogs.cpp b/src/export/ExportFFmpegDialogs.cpp index f14a5521f..f9dcd46f1 100644 --- a/src/export/ExportFFmpegDialogs.cpp +++ b/src/export/ExportFFmpegDialogs.cpp @@ -2015,7 +2015,7 @@ void ExportFFmpegOptions::FindSelectedFormat(wxString **name, wxString **longnam // Get selected format short name wxString selfmt = mFormatList->GetString(selections[0]); - // Find it's index + // Find its index int nFormat = make_iterator_range( mFormatNames ).index( selfmt ); if (nFormat == wxNOT_FOUND) return; @@ -2036,7 +2036,7 @@ void ExportFFmpegOptions::FindSelectedCodec(wxString **name, wxString **longname // Get selected codec short name wxString selcdc = mCodecList->GetString(selections[0]); - // Find it's index + // Find its index int nCodec = make_iterator_range( mCodecNames ).index( selcdc ); if (nCodec == wxNOT_FOUND) return; @@ -2076,7 +2076,7 @@ int ExportFFmpegOptions::FetchCompatibleCodecList(const wxChar *fmt, AVCodecID i // If it exists, is audio and has encoder if (codec != NULL && (codec->type == AVMEDIA_TYPE_AUDIO) && av_codec_is_encoder(codec)) { - // If it was selected - remember it's NEW index + // If it was selected - remember its NEW index if ((id >= 0) && codec->id == id) index = mShownCodecNames.size(); mShownCodecNames.push_back(wxString::FromUTF8(codec->name)); mShownCodecLongNames.push_back(wxString::Format(wxT("%s - %s"),mShownCodecNames.back(),wxString::FromUTF8(codec->long_name))); @@ -2104,7 +2104,7 @@ int ExportFFmpegOptions::FetchCompatibleCodecList(const wxChar *fmt, AVCodecID i } } } - // Format is not found - find format in libavformat and add it's default audio codec + // Format is not found - find format in libavformat and add its default audio codec // This allows us to provide limited support for NEW formats without modifying the compatibility list else if (found == 0) { diff --git a/src/export/ExportFFmpegDialogs.h b/src/export/ExportFFmpegDialogs.h index c7a15dea7..1a172a7c0 100644 --- a/src/export/ExportFFmpegDialogs.h +++ b/src/export/ExportFFmpegDialogs.h @@ -294,10 +294,10 @@ private: wxArrayStringEx mPresetNames; - /// Finds the format currently selected and returns it's name and description + /// Finds the format currently selected and returns its name and description void FindSelectedFormat(wxString **name, wxString **longname); - /// Finds the codec currently selected and returns it's name and description + /// Finds the codec currently selected and returns its name and description void FindSelectedCodec(wxString **name, wxString **longname); /// Retrieves format list from libavformat diff --git a/src/export/ExportPCM.cpp b/src/export/ExportPCM.cpp index 0e10ef0d3..40ba19903 100644 --- a/src/export/ExportPCM.cpp +++ b/src/export/ExportPCM.cpp @@ -365,7 +365,7 @@ void ExportPCMOptions::GetEncodings(int enc) if (sf_format_check(&info)) { // If this subtype matches our last saved encoding, remember - // it's index so we can set it in the dialog. + // its index so we can set it in the dialog. if (sub == enc) { mEncodingFromChoice = mEncodingIndexes.size(); diff --git a/src/widgets/KeyView.cpp b/src/widgets/KeyView.cpp index 7ff5b7f8b..f35efcd70 100644 --- a/src/widgets/KeyView.cpp +++ b/src/widgets/KeyView.cpp @@ -992,7 +992,7 @@ KeyView::RefreshLines(bool bSort) node.line = linecnt++; mLines.push_back(&node); - // If this node is not open, then skip all of it's decendants + // If this node is not open, then skip all of its decendants if (!node.isopen) { bool iscat = node.iscat; @@ -1678,7 +1678,7 @@ KeyView::OnLeftDown(wxMouseEvent & event) // order as they appear in the menus. But, we want to sort the // "command" nodes. // -// To accomplish this, we prepend each label with it's line number +// To accomplish this, we prepend each label with its line number // (in hex) for "menu" nodes. This ensures they will remain in // their original order. // diff --git a/src/widgets/NumericTextCtrl.h b/src/widgets/NumericTextCtrl.h index c87f5edba..bfc03f373 100644 --- a/src/widgets/NumericTextCtrl.h +++ b/src/widgets/NumericTextCtrl.h @@ -34,7 +34,7 @@ DECLARE_EXPORTED_EVENT_TYPE(AUDACITY_DLL_API, EVT_FREQUENCYTEXTCTRL_UPDATED, -1) DECLARE_EXPORTED_EVENT_TYPE(AUDACITY_DLL_API, EVT_BANDWIDTHTEXTCTRL_UPDATED, -1); -/** \brief struct to hold a formatting control string and it's user facing name +/** \brief struct to hold a formatting control string and its user facing name * Used in an array to hold the built-in time formats that are always available * to the user */ struct BuiltinFormatString;