GH-2591 less std::shared_ptr and more shared_qobject_ptr
This eliminates some weird crashes.
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "BaseExternalTool.h"
|
||||
#include "QObjectPtr.h"
|
||||
|
||||
#include "multimc_logic_export.h"
|
||||
|
||||
@ -17,13 +18,13 @@ public:
|
||||
|
||||
public
|
||||
slots:
|
||||
void beginProfiling(std::shared_ptr<LaunchTask> process);
|
||||
void beginProfiling(shared_qobject_ptr<LaunchTask> process);
|
||||
void abortProfiling();
|
||||
|
||||
protected:
|
||||
QProcess *m_profilerProcess;
|
||||
|
||||
virtual void beginProfilingImpl(std::shared_ptr<LaunchTask> process) = 0;
|
||||
virtual void beginProfilingImpl(shared_qobject_ptr<LaunchTask> process) = 0;
|
||||
virtual void abortProfilingImpl();
|
||||
|
||||
signals:
|
||||
|
Reference in New Issue
Block a user