Skip to content

Commit

Permalink
Define FilePart.toString to avoid deprecation warning.
Browse files Browse the repository at this point in the history
Otherwise DictionaryList.toString() will implicitly call NativePath.Segment.toString(), which is deprecated.
  • Loading branch information
s-ludwig committed Dec 17, 2017
1 parent bf5896e commit 48a9ddc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inet/vibe/inet/webform.d
Expand Up @@ -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; }
}


Expand Down

0 comments on commit 48a9ddc

Please sign in to comment.