File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -689,7 +689,7 @@ package(mysql) ubyte[] getPacket(Connection conn)
689
689
return packet;
690
690
}
691
691
692
- package (mysql) void send(MySQLSocket _socket, const (ubyte )[] packet)
692
+ package (mysql) void send(MySQLSocket _socket, scope const (ubyte )[] packet)
693
693
in
694
694
{
695
695
assert (packet.length > 4 ); // at least 1 byte more than header
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ interface MySQLSocket
39
39
@safe :
40
40
void close ();
41
41
@property bool connected() const ;
42
- void read (ubyte [] dst);
42
+ void read (scope ubyte [] dst);
43
43
void write (const scope ubyte [] bytes);
44
44
45
45
void acquire ();
@@ -78,7 +78,7 @@ class MySQLSocketPhobos : MySQLSocket
78
78
return socket.isAlive;
79
79
}
80
80
81
- void read (ubyte [] dst)
81
+ void read (scope ubyte [] dst)
82
82
{
83
83
// Note: I'm a little uncomfortable with this line as it doesn't
84
84
// (and can't) update Connection._open. Not sure what can be done,
@@ -138,7 +138,7 @@ version(Have_vibe_core) {
138
138
return socket.connected;
139
139
}
140
140
141
- void read (ubyte [] dst)
141
+ void read (scope ubyte [] dst)
142
142
{
143
143
socket.read(dst);
144
144
}
You can’t perform that action at this time.
0 commit comments