refactor: SpacesValidator, use QChar::Space
This commit is contained in:
parent
a0ac24a42c
commit
568f5c7fc5
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ SpacesValidator::SpacesValidator(const QString &message) : IStringValidator(mess
|
||||||
|
|
||||||
bool SpacesValidator::validate(const QString &input) const
|
bool SpacesValidator::validate(const QString &input) const
|
||||||
{
|
{
|
||||||
return !input.contains(' ');
|
return !input.contains(QChar::Space);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace validators
|
} // namespace validators
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue