send by reference
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
843c2d67eb
commit
bd6e8533ad
@ -30,7 +30,7 @@ class PackInstallTask : public InstanceTask {
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit PackInstallTask(Modpack pack) : m_pack(pack) {}
|
explicit PackInstallTask(const Modpack& pack) : m_pack(pack) {}
|
||||||
virtual ~PackInstallTask() = default;
|
virtual ~PackInstallTask() = default;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -43,7 +43,7 @@ class PackInstallTask : public InstanceTask {
|
|||||||
QFuture<bool> m_copyFuture;
|
QFuture<bool> m_copyFuture;
|
||||||
QFutureWatcher<bool> m_copyFutureWatcher;
|
QFutureWatcher<bool> m_copyFutureWatcher;
|
||||||
|
|
||||||
Modpack m_pack;
|
const Modpack m_pack;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace FTBImportAPP
|
} // namespace FTBImportAPP
|
||||||
|
Loading…
Reference in New Issue
Block a user