Fix generated forward declarations in qdbusxml.cpp

Simply use qcontainerfwd.h, instead of declaring those manually.

Change-Id: I6d87bf14b60469b457e8e9335868f8cdb0303817
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Lars Knoll 2020-09-09 10:08:24 +02:00
parent 557623cc4f
commit e07a739138
2 changed files with 5 additions and 7 deletions

View File

@ -61,6 +61,10 @@ template <class T> class QStack;
template<class T, qsizetype Prealloc = 256> class QVarLengthArray;
template <class T> class QList;
template<typename T> using QVector = QList<T>;
class QStringList;
using QByteArrayList = QList<QByteArray>;
class QMetaType;
class QVariant;
QT_END_NAMESPACE

View File

@ -71,13 +71,7 @@ static const char includeList[] =
"#include <QtCore/QVariant>\n";
static const char forwardDeclarations[] =
"QT_BEGIN_NAMESPACE\n"
"#include <QtCore/qcontainerfwd.h>\n"
"class QByteArray;\n"
"class QString;\n"
"class QStringList;\n"
"class QVariant;\n"
"QT_END_NAMESPACE\n";
"#include <QtCore/qcontainerfwd.h>\n";
static QDBusIntrospection::Interfaces readInput()
{