Skip to content

Commit

Permalink
fixed uninitialized member
Browse files Browse the repository at this point in the history
  • Loading branch information
jkriege2 committed Jan 22, 2024
1 parent adf230f commit bf89200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jkqtcommon/jkqtpcsstools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bf89200

Please sign in to comment.