From 7912905c7f81815f5210ccfc368a2397387e37fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sat, 13 Feb 2021 18:09:13 +0100 Subject: [PATCH] Make GenericPath.Segment(2).opCast const. --- source/vibe/core/path.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/vibe/core/path.d b/source/vibe/core/path.d index 4190075..0bb9925 100644 --- a/source/vibe/core/path.d +++ b/source/vibe/core/path.d @@ -302,7 +302,7 @@ struct GenericPath(F) { be represented in the target path format. */ GenericPath!F.Segment opCast(T : GenericPath!F.Segment, F)() - { + const { char dsep = '\0'; if (m_separator) { if (F.isSeparator(m_separator)) dsep = m_separator; @@ -520,7 +520,7 @@ struct GenericPath(F) { be represented in the target path format. */ GenericPath!F.Segment2 opCast(T : GenericPath!F.Segment2, F)() - { + const { import std.array : array; char dsep = '\0';