From 9c2c6a6fbbfe873ce570600ac2a276794095f185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Bond=C3=AC?= Date: Sat, 29 Feb 2020 22:25:16 +0100 Subject: [PATCH] Fixed deprecation warning about union fields initialization --- src/dlangui/dom/cssparser.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlangui/dom/cssparser.d b/src/dlangui/dom/cssparser.d index a64c75f0..2331f1b6 100644 --- a/src/dlangui/dom/cssparser.d +++ b/src/dlangui/dom/cssparser.d @@ -81,7 +81,6 @@ struct CSSToken { string text; string dimensionUnit; union { - bool typeFlagId; // true if identifier is valid ID struct { long intValue = 0; // for number and dimension double doubleValue = 0; // for number and dimension @@ -91,6 +90,7 @@ struct CSSToken { uint unicodeRangeStart; // for unicodeRange (initialized to 0 via intValue=0) uint unicodeRangeEnd; // for unicodeRange (initialized to 0 via intValue=0) } + bool typeFlagId; // true if identifier is valid ID } }