diff --git a/src/Forms/AddToOcrReplaceList.cs b/src/Forms/AddToOcrReplaceList.cs index 0d4263495..807673b8d 100644 --- a/src/Forms/AddToOcrReplaceList.cs +++ b/src/Forms/AddToOcrReplaceList.cs @@ -43,10 +43,9 @@ namespace Nikse.SubtitleEdit.Forms { return; } - try { - var ci = new CultureInfo(languageString.Replace("_", "-")); + var ci = new CultureInfo(languageString.Replace('_', '-')); _threeLetterIsoLanguageName = ci.ThreeLetterISOLanguageName; } catch (CultureNotFoundException exception) diff --git a/src/Forms/AddToUserDic.cs b/src/Forms/AddToUserDic.cs index da216c8b6..1ef1d042c 100644 --- a/src/Forms/AddToUserDic.cs +++ b/src/Forms/AddToUserDic.cs @@ -71,7 +71,7 @@ namespace Nikse.SubtitleEdit.Forms internal void Initialize(string hunspellName, string text) { if (!string.IsNullOrEmpty(text)) - textBoxAddName.Text = text.Trim().TrimEnd('.').TrimEnd('!').TrimEnd('?'); + textBoxAddName.Text = text.Trim().TrimEnd('.', '!', '?'); comboBoxDictionaries.Items.Clear(); foreach (string name in Utilities.GetDictionaryLanguages()) diff --git a/src/Forms/ChangeFrameRate.cs b/src/Forms/ChangeFrameRate.cs index 0ce4967d5..ec9395336 100644 --- a/src/Forms/ChangeFrameRate.cs +++ b/src/Forms/ChangeFrameRate.cs @@ -11,15 +11,15 @@ namespace Nikse.SubtitleEdit.Forms { InitializeComponent(); - comboBoxFrameRateFrom.Items.Add((23.976).ToString()); - comboBoxFrameRateFrom.Items.Add((24.0).ToString()); - comboBoxFrameRateFrom.Items.Add((25.0).ToString()); - comboBoxFrameRateFrom.Items.Add((29.97).ToString()); + comboBoxFrameRateFrom.Items.Add(23.976); + comboBoxFrameRateFrom.Items.Add(24.0); + comboBoxFrameRateFrom.Items.Add(25.0); + comboBoxFrameRateFrom.Items.Add(29.97); - comboBoxFrameRateTo.Items.Add((23.976).ToString()); - comboBoxFrameRateTo.Items.Add((24.0).ToString()); - comboBoxFrameRateTo.Items.Add((25.0).ToString()); - comboBoxFrameRateTo.Items.Add((29.97).ToString()); + comboBoxFrameRateTo.Items.Add(23.976); + comboBoxFrameRateTo.Items.Add(24.0); + comboBoxFrameRateTo.Items.Add(25.0); + comboBoxFrameRateTo.Items.Add(29.97); LanguageStructure.ChangeFrameRate language = Configuration.Settings.Language.ChangeFrameRate; Text = language.Title;