mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Fix all compilation issues after enabling QT_DISABLE_DEPRECATED_UP_TO
This commit is contained in:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user