[FSD] Refactor m_socket member

This commit is contained in:
Mat Sutcliffe
2022-02-16 20:56:44 +00:00
parent f945f296c8
commit 5106859ed9
2 changed files with 22 additions and 16 deletions

View File

@@ -473,7 +473,8 @@ namespace BlackCore::Fsd
// Parser
QHash<QString, MessageType> m_messageTypeMapping;
QTcpSocket m_socket { this }; //!< used TCP socket, parent needed as it runs in worker thread
std::unique_ptr<QTcpSocket> m_socket = std::make_unique<QTcpSocket>(this); //!< used TCP socket, parent needed as it runs in worker thread
void connectSocketSignals();
std::atomic_bool m_unitTestMode { false };
std::atomic_bool m_printToConsole { false };