mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-02 11:26:59 +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
|
|
@ -3,10 +3,10 @@
|
|||
|
||||
#include <QProcess>
|
||||
|
||||
BaseProfiler::BaseProfiler(SettingsObjectPtr settings, InstancePtr instance, QObject* parent) : BaseExternalTool(settings, instance, parent)
|
||||
BaseProfiler::BaseProfiler(SettingsObject* settings, BaseInstance* instance, QObject* parent) : BaseExternalTool(settings, instance, parent)
|
||||
{}
|
||||
|
||||
void BaseProfiler::beginProfiling(shared_qobject_ptr<LaunchTask> process)
|
||||
void BaseProfiler::beginProfiling(LaunchTask* process)
|
||||
{
|
||||
beginProfilingImpl(process);
|
||||
}
|
||||
|
|
@ -27,7 +27,7 @@ void BaseProfiler::abortProfilingImpl()
|
|||
emit abortLaunch(tr("Profiler aborted"));
|
||||
}
|
||||
|
||||
BaseProfiler* BaseProfilerFactory::createProfiler(InstancePtr instance, QObject* parent)
|
||||
BaseProfiler* BaseProfilerFactory::createProfiler(BaseInstance* instance, QObject* parent)
|
||||
{
|
||||
return qobject_cast<BaseProfiler*>(createTool(instance, parent));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue