From a20c03c2ca0e336677affed17fad0cc0aa273251 Mon Sep 17 00:00:00 2001 From: niksedk Date: Fri, 7 Apr 2023 14:56:23 +0200 Subject: [PATCH] Minor refact --- src/ui/Forms/SetSyncPoint.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/Forms/SetSyncPoint.cs b/src/ui/Forms/SetSyncPoint.cs index b65b42ce8..e287fe0aa 100644 --- a/src/ui/Forms/SetSyncPoint.cs +++ b/src/ui/Forms/SetSyncPoint.cs @@ -261,7 +261,7 @@ namespace Nikse.SubtitleEdit.Forms } else if (_mainGeneralGoToNextSubtitle == e.KeyData || _mainGeneralGoToNextSubtitlePlayTranslate == e.KeyData) { - int selectedIndex = 0; + var selectedIndex = 0; if (subtitleListView1.SelectedItems.Count > 0) { selectedIndex = subtitleListView1.SelectedItems[0].Index; @@ -272,7 +272,7 @@ namespace Nikse.SubtitleEdit.Forms } else if (_mainGeneralGoToPrevSubtitle == e.KeyData || _mainGeneralGoToPrevSubtitlePlayTranslate == e.KeyData) { - int selectedIndex = 0; + var selectedIndex = 0; if (subtitleListView1.SelectedItems.Count > 0) { selectedIndex = subtitleListView1.SelectedItems[0].Index; @@ -353,7 +353,7 @@ namespace Nikse.SubtitleEdit.Forms { if (subtitleListView1.SelectedItems.Count == 1) { - int index = subtitleListView1.SelectedItems[0].Index; + var index = subtitleListView1.SelectedItems[0].Index; videoPlayerContainer1.Pause(); videoPlayerContainer1.CurrentPosition = _subtitle.Paragraphs[index].StartTime.TotalMilliseconds / TimeCode.BaseUnit;