1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 22:55:42 +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>
/// The empty polygon. That is, a polygon with no points.
/// </summary>
public static readonly Polygon Empty = new(ArraySegment<Point>.Empty);
public static readonly Polygon Empty = new();
private Point[]? _points;

View File

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