diff --git a/source/mysql/protocol/sockets.d b/source/mysql/protocol/sockets.d index a9b2468..a582fc9 100644 --- a/source/mysql/protocol/sockets.d +++ b/source/mysql/protocol/sockets.d @@ -40,7 +40,7 @@ interface MySQLSocket void close(); @property bool connected() const; void read(ubyte[] dst); - void write(in ubyte[] bytes); + void write(const scope ubyte[] bytes); void acquire(); void release(); @@ -93,7 +93,7 @@ class MySQLSocketPhobos : MySQLSocket } } - void write(in ubyte[] bytes) + void write(const scope ubyte[] bytes) { socket.send(bytes); } @@ -143,7 +143,7 @@ version(Have_vibe_core) { socket.read(dst); } - void write(in ubyte[] bytes) + void write(const scope ubyte[] bytes) { socket.write(bytes); }