Use fixed size for list

This commit is contained in:
ivandrofly 2015-06-17 04:44:47 +00:00
parent e5739135cf
commit 392e9f3d1f

View File

@ -73,7 +73,7 @@ namespace Nikse.SubtitleEdit.Forms
int count = 0;
_fixedSubtitle = new Subtitle(_subtitle);
_dic = new Dictionary<Paragraph, string>();
var fixedIndexes = new List<int>();
var fixedIndexes = new List<int>(_fixedSubtitle.Paragraphs.Count);
int minMsBetweenLines = (int)numericUpDownMinMsBetweenLines.Value;
for (int i = 0; i < _fixedSubtitle.Paragraphs.Count - 1; i++)