Move to forward declare of pointers

This commit is contained in:
2026-02-14 14:32:04 +01:00
parent b8085a3976
commit 8ec3b988a4
3 changed files with 6 additions and 2 deletions
+1
View File
@@ -7,6 +7,7 @@
#include <QCommandLineOption>
#include <QCommandLineParser>
#include <QProcess>
#include <QUrl>
#ifdef EMSCRIPTEN
#include <emscripten.h>
+2
View File
@@ -1,6 +1,8 @@
#include "web_socket_wrapper.hpp"
#include "spdlog/spdlog.h"
#include <magic_enum/magic_enum.hpp>
#include <QTimer>
#include <QtWebSockets/QWebSocket>
Web_socket_wrapper::Web_socket_wrapper(const QUrl &url, QObject *parent)
: QObject(parent), m_web_socket(new QWebSocket("", QWebSocketProtocol::VersionLatest, this)),
+3 -2
View File
@@ -1,9 +1,10 @@
#ifndef WEB_SOCKET_WRAPPER_H
#define WEB_SOCKET_WRAPPER_H
#include <QTimer>
#include <QtWebSockets/QWebSocket>
#include <nlohmann/json.hpp>
#include <QObject>
Q_FORWARD_DECLARE_OBJC_CLASS(QWebSocket);
Q_FORWARD_DECLARE_OBJC_CLASS(QTimer);
using json = nlohmann::json;
class Web_socket_wrapper : public QObject