From 7bed7f039fda3ae635e1d4c3a7acd7076887531d Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 12 Jan 2017 18:07:39 +0100 Subject: [PATCH] Remove default parameter value from Protocol.disconnected --- source/tanya/async/loop.d | 2 +- source/tanya/async/protocol.d | 2 +- source/tanya/container/vector.d | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/tanya/async/loop.d b/source/tanya/async/loop.d index 7130d9e..14cceec 100644 --- a/source/tanya/async/loop.d +++ b/source/tanya/async/loop.d @@ -27,7 +27,7 @@ * this.transport = transport; * } * - * void disconnected(SocketException e = null) @nogc + * void disconnected(SocketException e) @nogc * { * } * } diff --git a/source/tanya/async/protocol.d b/source/tanya/async/protocol.d index f8e9c09..3b62db6 100644 --- a/source/tanya/async/protocol.d +++ b/source/tanya/async/protocol.d @@ -39,7 +39,7 @@ interface Protocol * exception = $(D_PSYMBOL Exception) if an error caused * the disconnect, $(D_KEYWORD null) otherwise. */ - void disconnected(SocketException exception = null) @nogc; + void disconnected(SocketException exception) @nogc; } /** diff --git a/source/tanya/container/vector.d b/source/tanya/container/vector.d index 868cc40..bbeb2f6 100644 --- a/source/tanya/container/vector.d +++ b/source/tanya/container/vector.d @@ -1403,7 +1403,7 @@ struct Vector(T) * * Returns: The array with elements of this vector. */ - inout(T[]) data() inout + @property inout(T[]) data() inout { return vector[0 .. length]; }