mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Use 'auto' to avoid duplicating the type name
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user