diff options
Diffstat (limited to 'src/widgets/widgets/qspinbox.cpp')
-rw-r--r-- | src/widgets/widgets/qspinbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/widgets/qspinbox.cpp b/src/widgets/widgets/qspinbox.cpp index ee94368690..3038d8e30c 100644 --- a/src/widgets/widgets/qspinbox.cpp +++ b/src/widgets/widgets/qspinbox.cpp @@ -1157,8 +1157,8 @@ QVariant QDoubleSpinBoxPrivate::validateAndInterpret(QString &input, int &pos, } } } else { - const QChar &last = copy.at(len - 1); - const QChar &secondLast = copy.at(len - 2); + const QChar last = copy.at(len - 1); + const QChar secondLast = copy.at(len - 2); if ((last == locale.groupSeparator() || last.isSpace()) && (secondLast == locale.groupSeparator() || secondLast.isSpace())) { state = QValidator::Invalid; |