Fix all compilation issues after enabling QT_DISABLE_DEPRECATED_UP_TO

This commit is contained in:
luisangelsm
2026-03-30 15:48:02 +02:00
parent 12a5949b16
commit e6cbfa634b
49 changed files with 227 additions and 204 deletions

View File

@ -8,6 +8,8 @@
#include <QFileInfo>
#include <QList>
#include <utility>
Bookmarks::Bookmarks()
: lastPageIndex(0)
{
@ -93,7 +95,7 @@ void Bookmarks::clear()
bool Bookmarks::load(const QList<int> &bookmarkIndexes, int lastPage)
{
lastPageIndex = lastPage;
foreach (int b, bookmarkIndexes)
for (const int b : std::as_const(bookmarkIndexes))
if (b != -1) {
latestBookmarks.push_back(b);
bookmarks.insert(b, QImage());