From 8605454cba005040c7994e20c6f8a8ae22fd065d Mon Sep 17 00:00:00 2001 From: Ondrej Petrzilka Date: Thu, 13 Oct 2016 09:49:55 +0200 Subject: [PATCH] Used tabs instead of spaces --- ILSpy/SearchPane.cs | 6 +++--- ILSpy/SearchStrategies.cs | 26 +++++++++++++------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/ILSpy/SearchPane.cs b/ILSpy/SearchPane.cs index 2be51bc21..4fb1900e1 100644 --- a/ILSpy/SearchPane.cs +++ b/ILSpy/SearchPane.cs @@ -268,9 +268,9 @@ namespace ICSharpCode.ILSpy this.Results.Insert(this.Results.Count - 1, result); } else - { - // Original code - this.Results.Insert(this.Results.Count - 1, result); + { + // Original code + this.Results.Insert(this.Results.Count - 1, result); } } diff --git a/ILSpy/SearchStrategies.cs b/ILSpy/SearchStrategies.cs index 068ee1b0e..ef7570849 100644 --- a/ILSpy/SearchStrategies.cs +++ b/ILSpy/SearchStrategies.cs @@ -32,19 +32,19 @@ namespace ICSharpCode.ILSpy protected float CalculateFitness(MemberReference member, string text) { - // Ignore generic arguments, it not possible to search based on them either - int length = 0; - int generics = 0; - for (int i = 0; i < text.Length; i++) - { - if (text[i] == '<') - generics++; - else if (text[i] == '>') - generics--; - else if (generics == 0) - length++; - } - return 1.0f / length; + // Ignore generic arguments, it not possible to search based on them either + int length = 0; + int generics = 0; + for (int i = 0; i < text.Length; i++) + { + if (text[i] == '<') + generics++; + else if (text[i] == '>') + generics--; + else if (generics == 0) + length++; + } + return 1.0f / length; } protected bool IsMatch(string text)