Apply batch fixing of built-in types using var

This commit is contained in:
Dean Herbert
2021-10-27 13:04:41 +09:00
parent 1d7e97625a
commit 6944151486
263 changed files with 572 additions and 572 deletions

View File

@ -25,7 +25,7 @@ namespace osu.Game.Tests.Visual
{
var dependencyContainer = new DependencyContainer(base.CreateChildDependencies(parent));
foreach (var (type, value) in CachedDependencies)
foreach ((var type, object value) in CachedDependencies)
dependencyContainer.CacheAs(type, value);
return dependencyContainer;

View File

@ -127,7 +127,7 @@ namespace osu.Game.Tests.Visual
void updateSizing()
{
var autoSize = created.RelativeSizeAxes == Axes.None;
bool autoSize = created.RelativeSizeAxes == Axes.None;
foreach (var c in new[] { mainProvider, childContainer, skinProvider })
{
@ -202,7 +202,7 @@ namespace osu.Game.Tests.Visual
{
var match = Regex.Match(componentName, "-([0-9]*)");
if (match.Length > 0 && int.TryParse(match.Groups[1].Value, out var number) && number < 60)
if (match.Length > 0 && int.TryParse(match.Groups[1].Value, out int number) && number < 60)
return base.GetTexture(componentName.Replace($"-{number}", $"-{number % 2}"), wrapModeS, wrapModeT);
}