File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 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)
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)
693693in
694694{
695695 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
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 }
You can’t perform that action at this time.
0 commit comments