UnrealBuildTool: More automated code cleanup

* Use object type rather than var
* Remove double newlines
* Use pattern matching

#rnx
#preflight 647780095d23eca37d28a387

[CL 25706751 by joe kirchoff in ue5-main branch]
This commit is contained in:
joe kirchoff
2023-05-31 13:37:21 -04:00
parent 49e84cf05f
commit acacd6a8de
109 changed files with 319 additions and 697 deletions
@@ -463,7 +463,7 @@ namespace UnrealBuildTool
if ((!Action.bCanExecuteRemotely || Action.ActionType == ActionType.Link) && Action.PrerequisiteActions.Count > 0)
{
int LastSortIndex = 0;
foreach (var Prereq in Action.PrerequisiteActions)
foreach (LinkedAction Prereq in Action.PrerequisiteActions)
{
LastSortIndex = Math.Max(LastSortIndex, Prereq.SortIndex);
}
@@ -889,7 +889,7 @@ namespace UnrealBuildTool
using (GlobalTracer.Instance.BuildSpan("Cache outdated actions based on recursive prerequisites").StartActive())
{
foreach (var Action in Actions)
foreach (LinkedAction Action in Actions)
{
IsActionOutdatedDueToPrerequisites(Action, OutdatedActions, bIgnoreOutdatedImportLibraries, Logger);
}