mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Remove an unnecessary indirection in ComicFlow
The timer pointer forced error-prone manual memory management without any benefits.
This commit is contained in:
committed by
Luis Ángel San Martín
parent
cb7c967252
commit
04140bef0b
@ -6,6 +6,7 @@
|
||||
#include <QtCore>
|
||||
#include <QImage>
|
||||
#include <QString>
|
||||
#include <QTimer>
|
||||
#include <QWheelEvent>
|
||||
|
||||
#include <memory>
|
||||
@ -38,7 +39,7 @@ private:
|
||||
QVector<bool> imagesSetted;
|
||||
int numImagesLoaded;
|
||||
int workerIndex;
|
||||
QTimer *updateTimer;
|
||||
QTimer updateTimer;
|
||||
std::unique_ptr<WorkerThread<QImage>> worker;
|
||||
virtual void wheelEvent(QWheelEvent *event);
|
||||
};
|
||||
|
Reference in New Issue
Block a user