send by reference

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-07-13 19:58:08 +03:00
parent 843c2d67eb
commit bd6e8533ad
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -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