Call Clear() StringBuilder instead.

This commit is contained in:
Ivandro Ismael 2016-05-03 10:27:23 +01:00
parent f6d8e76d6a
commit d8a9b1527f

View File

@ -89,7 +89,7 @@ namespace Nikse.SubtitleEdit.Forms
private string _autoDetectGoogleLanguage;
private List<string> _namesEtcList;
private HashSet<string> _abbreviationList;
private StringBuilder _newLog = new StringBuilder();
private readonly StringBuilder _newLog = new StringBuilder();
private readonly StringBuilder _appliedLog = new StringBuilder();
private int _numberOfImportantLogMessages;
private List<int> _deleteIndices = new List<int>();
@ -630,7 +630,7 @@ namespace Nikse.SubtitleEdit.Forms
private void RunSelectedActions()
{
subtitleListView1.BeginUpdate();
_newLog = new StringBuilder();
_newLog.Clear();
_deleteIndices = new List<int>();
Subtitle = new Subtitle(_originalSubtitle, false);