From 07f20b275edf50228f0d5897a638f6d4ef759bed Mon Sep 17 00:00:00 2001 From: Saksham Goyal Date: Wed, 9 Oct 2024 02:13:22 -0400 Subject: [PATCH] Update qtlocalpeer.h --- src/app/qtlocalpeer/qtlocalpeer.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/app/qtlocalpeer/qtlocalpeer.h b/src/app/qtlocalpeer/qtlocalpeer.h index 9dd1cc395..2969bf2d3 100644 --- a/src/app/qtlocalpeer/qtlocalpeer.h +++ b/src/app/qtlocalpeer/qtlocalpeer.h @@ -69,10 +69,8 @@ #pragma once #include - -#include "qtlockedfile.h" - -class QLocalServer; +#include +#include class QtLocalPeer final : public QObject { @@ -94,6 +92,6 @@ private slots: private: QString m_socketName; - QLocalServer *m_server = nullptr; - QtLP_Private::QtLockedFile m_lockFile; + QLocalServer *m_server = new QLocalServer(this); + QLockFile m_lockFile; };