From 74caaface0ed200108dad957c63e81a500160b9e Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Mon, 10 Apr 2023 10:29:08 +0200 Subject: [PATCH] Further KIO::AccessManager cleanup --- core/filetransferjob.cpp | 1 + daemon/kdeconnectd.cpp | 6 ------ tests/pluginloadtest.cpp | 1 - tests/sendfiletest.cpp | 1 - tests/testdaemon.h | 2 -- 5 files changed, 1 insertion(+), 10 deletions(-) diff --git a/core/filetransferjob.cpp b/core/filetransferjob.cpp index 653cb0899..a5dd1d9c6 100644 --- a/core/filetransferjob.cpp +++ b/core/filetransferjob.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index 887d23992..4ded993c8 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include @@ -17,7 +16,6 @@ #include #include -#include #include #include #include @@ -38,7 +36,6 @@ class DesktopDaemon : public Daemon public: DesktopDaemon(QObject *parent = nullptr) : Daemon(parent) - , m_nam(nullptr) { qApp->setWindowIcon(QIcon(QStringLiteral(":/icons/kdeconnect/kdeconnect.svg"))); } @@ -92,9 +89,6 @@ public: { QApplication::quit(); } - -private: - QNetworkAccessManager *m_nam; }; // Copied from plasma-workspace/libkworkspace/kworkspace.cpp diff --git a/tests/pluginloadtest.cpp b/tests/pluginloadtest.cpp index f275d5a8f..e237ba9dd 100644 --- a/tests/pluginloadtest.cpp +++ b/tests/pluginloadtest.cpp @@ -5,7 +5,6 @@ */ #include -#include #include #include #include diff --git a/tests/sendfiletest.cpp b/tests/sendfiletest.cpp index 59ecccd90..3f7b04432 100644 --- a/tests/sendfiletest.cpp +++ b/tests/sendfiletest.cpp @@ -5,7 +5,6 @@ */ #include -#include #include #include #include diff --git a/tests/testdaemon.h b/tests/testdaemon.h index 886fa5dee..90073c317 100644 --- a/tests/testdaemon.h +++ b/tests/testdaemon.h @@ -18,7 +18,6 @@ class TestDaemon : public Daemon public: TestDaemon(QObject *parent = nullptr) : Daemon(parent, true) - , m_nam(nullptr) , m_jobTrackerInterface(nullptr) { // Necessary to force the event loop to run because the test harness seems to behave differently @@ -60,7 +59,6 @@ public: } private: - QNetworkAccessManager *m_nam; KJobTrackerInterface *m_jobTrackerInterface; };