fix (Qt) issues found by clang's clazy tool:
+ -Wclazy-incorrect-emit + -Wclazy-strict-iterators + -Wclazy-overloaded-signal + -Wclazy-qstring-arg + -Wclazy-unused-non-trivial-variable + -Wclazy-container-anti-pattern + -Wclazy-range-loop-reference + -Wclazy-const-signal-or-slot + -Wclazy-detaching-temporary + -Wclazy-qfileinfo-exists
This commit is contained in:
@@ -599,8 +599,8 @@ void QuantitySpinBox::updateFromCache(bool notify, bool updateUnit /* = true */)
|
||||
// signaling
|
||||
if (notify) {
|
||||
d->pendingEmit = false;
|
||||
valueChanged(res);
|
||||
valueChanged(res.getValue());
|
||||
Q_EMIT valueChanged(res);
|
||||
Q_EMIT valueChanged(res.getValue());
|
||||
textChanged(text);
|
||||
}
|
||||
}
|
||||
@@ -956,7 +956,7 @@ void QuantitySpinBox::selectNumber()
|
||||
QChar g = locale().groupSeparator();
|
||||
QChar n = locale().negativeSign();
|
||||
|
||||
for (QString::iterator it = str.begin(); it != str.end(); ++it) {
|
||||
for (QString::const_iterator it = str.cbegin(); it != str.cend(); ++it) {
|
||||
if (it->isDigit())
|
||||
i++;
|
||||
else if (*it == d)
|
||||
|
||||
Reference in New Issue
Block a user