mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 08:27:24 -06:00
Use 'auto' to avoid duplicating the type name
This commit is contained in:
@@ -183,7 +183,7 @@ bool ScanFoldersModel::setData(const QModelIndex &index, const QVariant &value,
|
||||
return false;
|
||||
|
||||
if (role == Qt::UserRole) {
|
||||
PathType type = static_cast<PathType>(value.toInt());
|
||||
auto type = static_cast<PathType>(value.toInt());
|
||||
if (type == CUSTOM_LOCATION)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user