mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Use auto to avoid duplicating the type name
This commit is contained in:
@ -1071,7 +1071,7 @@ QList<LibraryItem *> DBHelper::getFoldersFromParent(qulonglong parentId, QSqlDat
|
||||
if (list.isEmpty() || !sort)
|
||||
list.append(currentItem);
|
||||
else {
|
||||
Folder *last = static_cast<Folder *>(list.back());
|
||||
auto last = static_cast<Folder *>(list.back());
|
||||
QString nameLast = last->name;
|
||||
QString nameCurrent = currentItem->name;
|
||||
QList<LibraryItem *>::iterator i;
|
||||
|
Reference in New Issue
Block a user