Mark members as static when possible.

This commit is contained in:
XhmikosR 2014-11-22 10:53:44 +02:00
parent addbed65d4
commit 7385561064
3 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,7 @@ namespace Nikse.SubtitleEdit.Logic.Dictionaries
return Path.Combine(_dictionaryFolder, _languageName + "_names_etc_user.xml");
}
private void LoadNamesList(string fileName, HashSet<string> namesList, HashSet<string> namesMultiList)
static private void LoadNamesList(string fileName, HashSet<string> namesList, HashSet<string> namesMultiList)
{
if (string.IsNullOrEmpty(fileName) || !File.Exists(fileName))
return;

View File

@ -932,7 +932,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
return input;
}
private bool IsUrl(string text)
static private bool IsUrl(string text)
{
if (string.IsNullOrWhiteSpace(text) || text.Length < 6 || !text.Contains(".") || text.Contains(" "))
return false;
@ -947,7 +947,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
return false;
}
private bool StartsWithUrl(string text)
static private bool StartsWithUrl(string text)
{
if (string.IsNullOrWhiteSpace(text))
return false;

View File

@ -119,7 +119,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
return xmlAsText;
}
private bool IsNearleWholeNumber(double number)
static private bool IsNearleWholeNumber(double number)
{
double rest = number - Convert.ToInt64(number);
return rest < 0.001;