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

@@ -16,7 +16,7 @@ namespace OpenRA
{
public class Arguments
{
Dictionary<string, string> args = new Dictionary<string, string>();
readonly Dictionary<string, string> args = new Dictionary<string, string>();
public static Arguments Empty => new Arguments();

View File

@@ -18,7 +18,7 @@ namespace OpenRA.Support
{
public readonly Color C;
public readonly string Name;
double[] samples = new double[100];
readonly double[] samples = new double[100];
public double Val = 0.0;
int head = 1, tail = 0;
public bool HasNormalTick = true;

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Support
List<PerfTimer> children;
long ticks;
static ThreadLocal<PerfTimer> parentThreadLocal = new ThreadLocal<PerfTimer>();
static readonly ThreadLocal<PerfTimer> parentThreadLocal = new ThreadLocal<PerfTimer>();
public PerfTimer(string name, float thresholdMs = 0)
{