Remove default parameter value from Protocol.disconnected

This commit is contained in:
Eugen Wissner 2017-01-12 18:07:39 +01:00
parent 8ddea0aa46
commit 7bed7f039f
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@
* this.transport = transport; * this.transport = transport;
* } * }
* *
* void disconnected(SocketException e = null) @nogc * void disconnected(SocketException e) @nogc
* { * {
* } * }
* } * }

View File

@ -39,7 +39,7 @@ interface Protocol
* exception = $(D_PSYMBOL Exception) if an error caused * exception = $(D_PSYMBOL Exception) if an error caused
* the disconnect, $(D_KEYWORD null) otherwise. * the disconnect, $(D_KEYWORD null) otherwise.
*/ */
void disconnected(SocketException exception = null) @nogc; void disconnected(SocketException exception) @nogc;
} }
/** /**

View File

@ -1403,7 +1403,7 @@ struct Vector(T)
* *
* Returns: The array with elements of this vector. * Returns: The array with elements of this vector.
*/ */
inout(T[]) data() inout @property inout(T[]) data() inout
{ {
return vector[0 .. length]; return vector[0 .. length];
} }