Use Qt provided forward declaration header

This commit is contained in:
Chocobo1
2020-12-09 13:48:59 +08:00
parent d484c0e7ce
commit 498da509db
42 changed files with 52 additions and 37 deletions

View File

@@ -29,6 +29,7 @@
#include "bytearray.h"
#include <QByteArray>
#include <QVector>
QVector<QByteArray> Utils::ByteArray::splitToViews(const QByteArray &in, const QByteArray &sep, const QString::SplitBehavior behavior)
{

View File

@@ -29,7 +29,7 @@
#pragma once
#include <QString>
#include <QVector>
#include <QtContainerFwd>
class QByteArray;

View File

@@ -52,6 +52,7 @@
#include <QRegularExpression>
#include <QSet>
#include <QSysInfo>
#include <QVector>
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)) && defined(QT_DBUS_LIB)
#include <QDBusInterface>

View File

@@ -28,10 +28,13 @@
#include "net.h"
#include <QList>
#include <QNetworkInterface>
#include <QPair>
#include <QSslCertificate>
#include <QSslKey>
#include <QString>
#include <QVector>
namespace Utils
{

View File

@@ -30,9 +30,7 @@
#define BASE_UTILS_NET_H
#include <QHostAddress>
#include <QList>
#include <QPair>
#include <QVector>
#include <QtContainerFwd>
class QSslCertificate;
class QSslKey;

View File

@@ -34,6 +34,7 @@
#include <QByteArray>
#include <QString>
#include <QVector>
#include "bytearray.h"
#include "random.h"

View File

@@ -35,6 +35,7 @@
#include <QLocale>
#include <QRegExp>
#include <QtGlobal>
#include <QVector>
#if defined(Q_OS_MACOS) || defined(__MINGW32__)
#define QBT_USES_QTHREADSTORAGE

View File

@@ -31,9 +31,10 @@
#define UTILS_STRING_H
#include <QChar>
#include <QVector>
#include <QString>
#include <Qt>
#include <QtContainerFwd>
class QString;
class QStringRef;
class TriStateBool;