From cbb9f2891fc035ed4150977b3f6b448c403e6cd7 Mon Sep 17 00:00:00 2001 From: ivandrofly Date: Tue, 1 Sep 2015 09:56:44 +0100 Subject: [PATCH] [internal] - prefer item.SubItems.Add --- src/Forms/MultipleReplace.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/Forms/MultipleReplace.cs b/src/Forms/MultipleReplace.cs index ddc217a13..0b3f2abf9 100644 --- a/src/Forms/MultipleReplace.cs +++ b/src/Forms/MultipleReplace.cs @@ -242,15 +242,10 @@ namespace Nikse.SubtitleEdit.Forms private void AddToReplaceListView(bool enabled, string findWhat, string replaceWith, string searchType) { - var item = new ListViewItem("") { Checked = enabled }; - - var subItem = new ListViewItem.ListViewSubItem(item, findWhat); - item.SubItems.Add(subItem); - subItem = new ListViewItem.ListViewSubItem(item, replaceWith); - item.SubItems.Add(subItem); - subItem = new ListViewItem.ListViewSubItem(item, searchType); - item.SubItems.Add(subItem); - + var item = new ListViewItem(string.Empty) { Checked = enabled }; + item.SubItems.Add(findWhat); + item.SubItems.Add(replaceWith); + item.SubItems.Add(searchType); listViewReplaceList.Items.Add(item); }