jes.core.gapbuffer: use D-style dynamic array syntax

This commit is contained in:
Josh Holtrop 2020-06-23 17:03:00 -04:00
parent 0678bd79f4
commit 5741266dfb

View File

@ -20,7 +20,7 @@ class GapBuffer
private size_t m_size;
/** Data. */
private ubyte m_data[];
private ubyte[] m_data;
/** Gap position. */
private size_t m_gap_position;
@ -40,7 +40,7 @@ class GapBuffer
*
* @param data Initial data to use to populate the gap buffer.
*/
this(ubyte data[])
this(ubyte[] data)
{
m_data = data;
m_size = data.length;