From 48a9ddc2e97245f7356f448a8a29912996f34e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sun, 17 Dec 2017 22:47:23 +0100 Subject: [PATCH] Define FilePart.toString to avoid deprecation warning. Otherwise DictionaryList.toString() will implicitly call NativePath.Segment.toString(), which is deprecated. --- inet/vibe/inet/webform.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inet/vibe/inet/webform.d b/inet/vibe/inet/webform.d index f19d502cf9..b0a7c26b38 100644 --- a/inet/vibe/inet/webform.d +++ b/inet/vibe/inet/webform.d @@ -241,6 +241,9 @@ struct FilePart { InetHeaderMap headers; NativePath.Segment filename; NativePath tempPath; + + // avoids NativePath.Segment.toString() being called + string toString() const { return filename.name; } }