Avoid format strings in some places.

Where it is possible to directly concat strings, prefer this in some often-called methods.
This commit is contained in:
RoosterDragon
2017-12-15 19:27:27 +00:00
committed by Matthias Mailänder
parent f78c3bef33
commit 5b51f2a0fa
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ namespace OpenRA.Support
var label = type == typeof(string) || type.IsGenericType ? item.ToString() : type.Name;
Log.Write("perf", FormatString,
1000f * (endStopwatchTicks - startStopwatchTicks) / Stopwatch.Frequency,
"[{0}] {1}: {2}".F(Game.LocalTick, name, label));
"[" + Game.LocalTick + "] " + name + ": " + label);
}
public static long LongTickThresholdInStopwatchTicks