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
|
|
@ -24,22 +24,22 @@
|
|||
class GenericProfiler : public BaseProfiler {
|
||||
Q_OBJECT
|
||||
public:
|
||||
GenericProfiler(SettingsObjectPtr settings, InstancePtr instance, QObject* parent = 0);
|
||||
GenericProfiler(SettingsObject* settings, BaseInstance* instance, QObject* parent = 0);
|
||||
|
||||
protected:
|
||||
void beginProfilingImpl(shared_qobject_ptr<LaunchTask> process);
|
||||
void beginProfilingImpl(LaunchTask* process);
|
||||
};
|
||||
|
||||
GenericProfiler::GenericProfiler(SettingsObjectPtr settings, InstancePtr instance, QObject* parent)
|
||||
GenericProfiler::GenericProfiler(SettingsObject* settings, BaseInstance* instance, QObject* parent)
|
||||
: BaseProfiler(settings, instance, parent)
|
||||
{}
|
||||
|
||||
void GenericProfiler::beginProfilingImpl(shared_qobject_ptr<LaunchTask> process)
|
||||
void GenericProfiler::beginProfilingImpl(LaunchTask* process)
|
||||
{
|
||||
emit readyToLaunch(tr("Started process: %1").arg(process->pid()));
|
||||
}
|
||||
|
||||
BaseExternalTool* GenericProfilerFactory::createTool(InstancePtr instance, QObject* parent)
|
||||
BaseExternalTool* GenericProfilerFactory::createTool(BaseInstance* instance, QObject* parent)
|
||||
{
|
||||
return new GenericProfiler(globalSettings, instance, parent);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue