fixed uninitialized member

This commit is contained in:
jkriege2 2024-01-22 18:22:45 +01:00
parent adf230fcf1
commit bf89200a5c

View File

@ -380,7 +380,7 @@ JKQTPCSSParser::Token::Token(double num, const QString &unit_):
}
JKQTPCSSParser::Token::Token(const QString &str, TokenType type_):
StringValue(str), type(type_)
StringValue(str), type(type_), NumberValue(0.0)
{
if (type_==NUMBER) NumberValue=str.toDouble();
if (type_==HEXSTRING) NumberValue=str.toInt(nullptr,16);