Use 'auto' to avoid duplicating the type name

This commit is contained in:
thalieht 2019-02-13 17:12:02 +02:00
commit d8cbc9266a
25 changed files with 68 additions and 68 deletions

View file

@ -251,8 +251,7 @@ void Private::FileLineEdit::keyPressEvent(QKeyEvent *e)
showCompletionPopup();
}
const FileSystemPathValidator *validator =
qobject_cast<const FileSystemPathValidator *>(this->validator());
auto *validator = qobject_cast<const FileSystemPathValidator *>(this->validator());
if (validator) {
FileSystemPathValidator::TestResult lastTestResult = validator->lastTestResult();
QValidator::State lastState = validator->lastValidationState();