Skip to content

Commit 1adca67

Browse files
committed
Apply diff from forums
1 parent 3f17bd7 commit 1adca67

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/mysql/protocol/comms.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ package(mysql) ubyte[] getPacket(Connection conn)
689689
return packet;
690690
}
691691

692-
package(mysql) void send(MySQLSocket _socket, const(ubyte)[] packet)
692+
package(mysql) void send(MySQLSocket _socket, scope const(ubyte)[] packet)
693693
in
694694
{
695695
assert(packet.length > 4); // at least 1 byte more than header

source/mysql/protocol/sockets.d

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interface MySQLSocket
3939
@safe:
4040
void close();
4141
@property bool connected() const;
42-
void read(ubyte[] dst);
42+
void read(scope ubyte[] dst);
4343
void write(const scope ubyte[] bytes);
4444

4545
void acquire();
@@ -78,7 +78,7 @@ class MySQLSocketPhobos : MySQLSocket
7878
return socket.isAlive;
7979
}
8080

81-
void read(ubyte[] dst)
81+
void read(scope ubyte[] dst)
8282
{
8383
// Note: I'm a little uncomfortable with this line as it doesn't
8484
// (and can't) update Connection._open. Not sure what can be done,
@@ -138,7 +138,7 @@ version(Have_vibe_core) {
138138
return socket.connected;
139139
}
140140

141-
void read(ubyte[] dst)
141+
void read(scope ubyte[] dst)
142142
{
143143
socket.read(dst);
144144
}

0 commit comments

Comments
 (0)