From d8a9b1527fa3f6828897d33a47703ce436b4850c Mon Sep 17 00:00:00 2001 From: Ivandro Ismael Date: Tue, 3 May 2016 10:27:23 +0100 Subject: [PATCH] Call Clear() StringBuilder instead. --- src/Forms/FixCommonErrors.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Forms/FixCommonErrors.cs b/src/Forms/FixCommonErrors.cs index 0b6e24ef7..d9107f8b5 100644 --- a/src/Forms/FixCommonErrors.cs +++ b/src/Forms/FixCommonErrors.cs @@ -89,7 +89,7 @@ namespace Nikse.SubtitleEdit.Forms private string _autoDetectGoogleLanguage; private List _namesEtcList; private HashSet _abbreviationList; - private StringBuilder _newLog = new StringBuilder(); + private readonly StringBuilder _newLog = new StringBuilder(); private readonly StringBuilder _appliedLog = new StringBuilder(); private int _numberOfImportantLogMessages; private List _deleteIndices = new List(); @@ -630,7 +630,7 @@ namespace Nikse.SubtitleEdit.Forms private void RunSelectedActions() { subtitleListView1.BeginUpdate(); - _newLog = new StringBuilder(); + _newLog.Clear(); _deleteIndices = new List(); Subtitle = new Subtitle(_originalSubtitle, false);