mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 12:44:46 +01:00
Mark members as static when possible.
This commit is contained in:
parent
addbed65d4
commit
7385561064
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user