Browse Source

use overload ctor

pull/2899/head
Poker 1 year ago
parent
commit
c0ad4994cb
No known key found for this signature in database GPG Key ID: C65A6AD457D5C8F8
  1. 7
      src/ImageSharp/Formats/Icon/IconDir.cs

7
src/ImageSharp/Formats/Icon/IconDir.cs

@ -26,7 +26,12 @@ internal struct IconDir
/// </summary>
public ushort Count;
public IconDir(IconFileType type, ushort count = 0)
public IconDir(IconFileType type)
: this(type, 0)
{
}
public IconDir(IconFileType type, ushort count)
: this(0, type, count)
{
}

Loading…
Cancel
Save