Remove unneeded includes
This commit is contained in:
@@ -22,15 +22,12 @@
|
|||||||
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QUrl>
|
|
||||||
#include <QNetworkRequest>
|
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QTimerEvent>
|
#include <QTimerEvent>
|
||||||
|
|
||||||
#include "core/closure.h"
|
|
||||||
#include "networktimeouts.h"
|
#include "networktimeouts.h"
|
||||||
|
|
||||||
NetworkTimeouts::NetworkTimeouts(int timeout_msec, QObject *parent)
|
NetworkTimeouts::NetworkTimeouts(const int timeout_msec, QObject *parent)
|
||||||
: QObject(parent), timeout_msec_(timeout_msec) {}
|
: QObject(parent), timeout_msec_(timeout_msec) {}
|
||||||
|
|
||||||
void NetworkTimeouts::AddReply(QNetworkReply *reply) {
|
void NetworkTimeouts::AddReply(QNetworkReply *reply) {
|
||||||
@@ -60,4 +57,3 @@ void NetworkTimeouts::timerEvent(QTimerEvent *e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class NetworkTimeouts : public QObject {
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit NetworkTimeouts(int timeout_msec, QObject *parent = nullptr);
|
explicit NetworkTimeouts(const int timeout_msec, QObject *parent = nullptr);
|
||||||
|
|
||||||
void AddReply(QNetworkReply *reply);
|
void AddReply(QNetworkReply *reply);
|
||||||
void SetTimeout(int msec) { timeout_msec_ = msec; }
|
void SetTimeout(int msec) { timeout_msec_ = msec; }
|
||||||
|
|||||||
Reference in New Issue
Block a user