mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-09-16 16:11:17 -04:00
remove shared pointer from JavaChecker
from #2996(it doesn't necesary fixes it as I can't reproduce it) This just removes the shared pointer of the process from the JavaChecker Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
2 files changed
+44
-44
No files matched your search
@@ -1,4 +1,6 @@
|
||||
#pragma once
|
||||
#include <memory>
|
||||
|
||||
#include <QProcess>
|
||||
#include <QTimer>
|
||||
|
||||
@@ -9,7 +11,6 @@
|
||||
class JavaChecker : public Task {
|
||||
Q_OBJECT
|
||||
public:
|
||||
using QProcessPtr = shared_qobject_ptr<QProcess>;
|
||||
using Ptr = shared_qobject_ptr<JavaChecker>;
|
||||
|
||||
struct Result {
|
||||
@@ -26,6 +27,7 @@ class JavaChecker : public Task {
|
||||
};
|
||||
|
||||
explicit JavaChecker(QString path, QString args, int minMem = 0, int maxMem = 0, int permGen = 0, int id = 0);
|
||||
~JavaChecker() override = default;
|
||||
|
||||
signals:
|
||||
void checkFinished(const Result& result);
|
||||
@@ -34,8 +36,8 @@ class JavaChecker : public Task {
|
||||
virtual void executeTask() override;
|
||||
|
||||
private:
|
||||
QProcessPtr process;
|
||||
QTimer killTimer;
|
||||
std::unique_ptr<QProcess> m_process;
|
||||
QTimer m_killTimer;
|
||||
QString m_stdout;
|
||||
QString m_stderr;
|
||||
|
||||
|
||||
Reference in new issue
Block a user