mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
initialize variable in QDoubleValidatorPrivate::validateWithLocale()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
692168326a
commit
7ebb19ca2c
1 changed files with 1 additions and 1 deletions
|
@ -574,7 +574,7 @@ QValidator::State QDoubleValidatorPrivate::validateWithLocale(QString &input, QL
|
||||||
if (q->t < 0 && buff.startsWith('+'))
|
if (q->t < 0 && buff.startsWith('+'))
|
||||||
return QValidator::Invalid;
|
return QValidator::Invalid;
|
||||||
|
|
||||||
bool ok;
|
bool ok = false;
|
||||||
double i = QLocalePrivate::bytearrayToDouble(buff.constData(), &ok);
|
double i = QLocalePrivate::bytearrayToDouble(buff.constData(), &ok);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
return QValidator::Invalid;
|
return QValidator::Invalid;
|
||||||
|
|
Loading…
Add table
Reference in a new issue