diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-11-20 17:08:34 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-11-20 17:08:34 +0100 |
commit | c2c56a2f6ceaedb8a3fa88c848b345db0fec7f9c (patch) | |
tree | 25feac54950ef7f7c495360c66636454e8c4a32e /launcher/tasks/SequentialTask.h | |
parent | 0c861db7a201c813530e703257f286257f39872f (diff) | |
download | PrismLauncher-c2c56a2f6ceaedb8a3fa88c848b345db0fec7f9c.tar.gz PrismLauncher-c2c56a2f6ceaedb8a3fa88c848b345db0fec7f9c.tar.bz2 PrismLauncher-c2c56a2f6ceaedb8a3fa88c848b345db0fec7f9c.zip |
NOISSUE fix build
Diffstat (limited to 'launcher/tasks/SequentialTask.h')
-rw-r--r-- | launcher/tasks/SequentialTask.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/tasks/SequentialTask.h b/launcher/tasks/SequentialTask.h index 6898c8a6..e3091176 100644 --- a/launcher/tasks/SequentialTask.h +++ b/launcher/tasks/SequentialTask.h @@ -1,9 +1,9 @@ #pragma once #include "Task.h" +#include "QObjectPtr.h" #include <QQueue> -#include <memory> class SequentialTask : public Task { @@ -12,7 +12,7 @@ public: explicit SequentialTask(QObject *parent = 0); virtual ~SequentialTask() {}; - void addTask(std::shared_ptr<Task> task); + void addTask(shared_qobject_ptr<Task> task); protected: void executeTask(); @@ -25,6 +25,6 @@ slots: void subTaskProgress(qint64 current, qint64 total); private: - QQueue<std::shared_ptr<Task> > m_queue; + QQueue<shared_qobject_ptr<Task> > m_queue; int m_currentIndex; }; |