1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-14 04:15:41 +00:00

Initialize _points field as null

This commit is contained in:
Oliver Booth 2022-06-01 15:35:53 +01:00
parent 5f53495817
commit 2f74ef5f50
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ public struct Polygon : IEquatable<Polygon>
/// <summary> /// <summary>
/// The empty polygon. That is, a polygon with no points. /// The empty polygon. That is, a polygon with no points.
/// </summary> /// </summary>
public static readonly Polygon Empty = new(ArraySegment<Point>.Empty); public static readonly Polygon Empty = new();
private Point[]? _points; private Point[]? _points;

View File

@ -12,7 +12,7 @@ public struct PolygonF
/// <summary> /// <summary>
/// The empty polygon. That is, a polygon with no points. /// The empty polygon. That is, a polygon with no points.
/// </summary> /// </summary>
public static readonly PolygonF Empty = new(ArraySegment<PointF>.Empty); public static readonly PolygonF Empty = new();
private PointF[]? _points; private PointF[]? _points;