mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
refactor!!!: migrate from shared pointers
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
c64d871a28
commit
549405ab2f
199 changed files with 742 additions and 709 deletions
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
ResourceDownloadTask::ResourceDownloadTask(ModPlatform::IndexedPack::Ptr pack,
|
||||
ModPlatform::IndexedVersion version,
|
||||
const std::shared_ptr<ResourceFolderModel> packs,
|
||||
ResourceFolderModel* packs,
|
||||
bool is_indexed)
|
||||
: m_pack(std::move(pack)), m_pack_version(std::move(version)), m_pack_model(packs)
|
||||
{
|
||||
|
|
@ -88,7 +88,7 @@ void ResourceDownloadTask::downloadSucceeded()
|
|||
m_pack_model->uninstallResource(oldFilename, true);
|
||||
|
||||
// also rename the shader config file
|
||||
if (dynamic_cast<ShaderPackFolderModel*>(m_pack_model.get()) != nullptr) {
|
||||
if (dynamic_cast<ShaderPackFolderModel*>(m_pack_model) != nullptr) {
|
||||
QFileInfo oldConfig(m_pack_model->dir(), oldFilename + ".txt");
|
||||
QFileInfo newConfig(m_pack_model->dir(), getFilename() + ".txt");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue