Fixed fields missing the readonly modifier
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user