(ImageArray): use Array.Empty

This commit is contained in:
morkt 2018-10-27 09:58:30 +04:00
parent caa3313e2a
commit ebbe8abcab

View File

@ -614,9 +614,7 @@ namespace GameRes.Formats.ShiinaRio
private byte[] m_extra; private byte[] m_extra;
private int m_common_length; private int m_common_length;
static readonly byte[] EmptyArray = new byte[0]; // Array.Empty<T>() available in .Net 4.6 only public ImageArray (byte[] common) : this (common, common.Length, Array.Empty<byte>())
public ImageArray (byte[] common) : this (common, common.Length, EmptyArray)
{ {
} }