Clean up some warnings

This commit is contained in:
Chin 2014-12-19 22:16:34 -05:00
parent eb394ac0af
commit e795692614
8 changed files with 27 additions and 20 deletions

View file

@ -238,7 +238,7 @@ QValidator::State CSpinBox::validate(QString& input, int& pos) const
if (!prefix.isEmpty() && input.left(prefix.length()) != prefix)
return QValidator::Invalid;
unsigned strpos = prefix.length();
int strpos = prefix.length();
// Empty "numbers" allowed as intermediate values
if (strpos >= input.length() - HasSign() - suffix.length())