Ram Search - very slight optimization

This commit is contained in:
adelikat 2012-08-20 00:22:57 +00:00
parent df5ddfced8
commit 694f2aaae6
1 changed files with 7 additions and 4 deletions

View File

@ -594,16 +594,15 @@ namespace BizHawk.MultiClient
private void SearchListView_QueryItemText(int index, int column, out string text) private void SearchListView_QueryItemText(int index, int column, out string text)
{ {
text = "";
if (column == 0) if (column == 0)
{ {
text = searchList[index].address.ToString(addressFormatStr); text = searchList[index].address.ToString(addressFormatStr);
} }
if (column == 1) else if (column == 1)
{ {
text = searchList[index].ValueToString(); text = searchList[index].ValueToString();
} }
if (column == 2) else if (column == 2)
{ {
switch (Global.Config.RamSearchPreviousAs) switch (Global.Config.RamSearchPreviousAs)
{ {
@ -622,10 +621,14 @@ namespace BizHawk.MultiClient
break; break;
} }
} }
if (column == 3) else if (column == 3)
{ {
text = searchList[index].changecount.ToString(); text = searchList[index].changecount.ToString();
} }
else
{
text = "";
}
} }
private void ClearChangeCounts() private void ClearChangeCounts()