Fixed fields missing the readonly modifier

This commit is contained in:
penev92
2022-01-20 00:43:58 +02:00
committed by Paul Chote
parent f83e27d647
commit bf332b6619
96 changed files with 173 additions and 169 deletions

View File

@@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.FileFormats
{
public class IniFile
{
Dictionary<string, IniSection> sections = new Dictionary<string, IniSection>();
readonly Dictionary<string, IniSection> sections = new Dictionary<string, IniSection>();
public IniFile(Stream s)
{
@@ -49,7 +49,7 @@ namespace OpenRA.Mods.Common.FileFormats
}
}
Regex sectionPattern = new Regex(@"^\[([^]]*)\]");
readonly Regex sectionPattern = new Regex(@"^\[([^]]*)\]");
IniSection ProcessSection(string line)
{
@@ -111,7 +111,7 @@ namespace OpenRA.Mods.Common.FileFormats
public class IniSection : IEnumerable<KeyValuePair<string, string>>
{
public string Name { get; private set; }
Dictionary<string, string> values = new Dictionary<string, string>();
readonly Dictionary<string, string> values = new Dictionary<string, string>();
public IniSection(string name)
{