mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Apply batch fixing of built-in types using var
This commit is contained in:
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user