refactor: make shared_qobject_ptr ctor explicit
This turns issues like creating two shared ptrs from a single raw ptr from popping up at runtime, instead making them a compile error. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
5186ad95d3
commit
29f7ea752f
63 changed files with 301 additions and 287 deletions
|
@ -47,7 +47,7 @@ void PackFetchTask::fetch()
|
|||
publicPacks.clear();
|
||||
thirdPartyPacks.clear();
|
||||
|
||||
jobPtr = new NetJob("LegacyFTB::ModpackFetch", m_network);
|
||||
jobPtr.reset(new NetJob("LegacyFTB::ModpackFetch", m_network));
|
||||
|
||||
QUrl publicPacksUrl = QUrl(BuildConfig.LEGACY_FTB_CDN_BASE_URL + "static/modpacks.xml");
|
||||
qDebug() << "Downloading public version info from" << publicPacksUrl.toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue