Skip to content

Commit b199b34

Browse files
committed
Fix "usage of unassigned variable" errors
1 parent 119f16f commit b199b34

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Assets/MRTK/SDK/Features/UX/Scripts/BoundingBox/BoundingBox.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,8 +1869,8 @@ private Bounds GetTargetBounds()
18691869

18701870
private void ExtractBoundsCorners(Transform childTransform, BoundsCalculationMethod boundsCalculationMethod)
18711871
{
1872-
KeyValuePair<Transform, Collider> colliderByTransform;
1873-
KeyValuePair<Transform, Bounds> rendererBoundsByTransform;
1872+
KeyValuePair<Transform, Collider> colliderByTransform = default;
1873+
KeyValuePair<Transform, Bounds> rendererBoundsByTransform = default;
18741874

18751875
if (boundsCalculationMethod != BoundsCalculationMethod.RendererOnly)
18761876
{

Assets/MRTK/SDK/Features/UX/Scripts/BoundsControl/BoundsControl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,8 +902,8 @@ private Bounds GetTargetBounds()
902902

903903
private void ExtractBoundsCorners(Transform childTransform, BoundsCalculationMethod boundsCalculationMethod)
904904
{
905-
KeyValuePair<Transform, Collider> colliderByTransform;
906-
KeyValuePair<Transform, Bounds> rendererBoundsByTransform;
905+
KeyValuePair<Transform, Collider> colliderByTransform = default;
906+
KeyValuePair<Transform, Bounds> rendererBoundsByTransform = default;
907907

908908
if (boundsCalculationMethod != BoundsCalculationMethod.RendererOnly)
909909
{

Assets/MRTK/Tools/MSBuild/Scripts/Utilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public static bool TryGetGuidForAsset(FileInfo assetPath, out Guid guid)
129129
}
130130
}
131131

132-
if (guid != null && Guid.TryParse(guidString, out guid))
132+
if (guidString != null && Guid.TryParse(guidString, out guid))
133133
{
134134
return true;
135135
}

0 commit comments

Comments
 (0)