mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-26 10:31:39 +08:00
fixed uninitialized member
This commit is contained in:
parent
adf230fcf1
commit
bf89200a5c
@ -380,7 +380,7 @@ JKQTPCSSParser::Token::Token(double num, const QString &unit_):
|
|||||||
}
|
}
|
||||||
|
|
||||||
JKQTPCSSParser::Token::Token(const QString &str, TokenType type_):
|
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_==NUMBER) NumberValue=str.toDouble();
|
||||||
if (type_==HEXSTRING) NumberValue=str.toInt(nullptr,16);
|
if (type_==HEXSTRING) NumberValue=str.toInt(nullptr,16);
|
||||||
|
Loading…
Reference in New Issue
Block a user