diff --git a/src/tools/qdbuscpp2xml/qdbuscpp2xml.cpp b/src/tools/qdbuscpp2xml/qdbuscpp2xml.cpp index 768594efb4..5d6ee665c7 100644 --- a/src/tools/qdbuscpp2xml/qdbuscpp2xml.cpp +++ b/src/tools/qdbuscpp2xml/qdbuscpp2xml.cpp @@ -81,8 +81,7 @@ static const char help[] = " -V Show the program version and quit.\n" "\n"; - -int qDBusParametersForMethod(const FunctionDef &mm, QVector& metaTypes, QString &errorMsg) +int qDBusParametersForMethod(const FunctionDef &mm, QList &metaTypes, QString &errorMsg) { QList parameterTypes; parameterTypes.reserve(mm.arguments.size()); @@ -125,8 +124,8 @@ static QString addFunction(const FunctionDef &mm, bool isSignal = false) { return QString(); // wasn't a valid type } } - QVector names = mm.arguments; - QVector types; + QList names = mm.arguments; + QList types; QString errorMsg; int inputCount = qDBusParametersForMethod(mm, types, errorMsg); if (inputCount == -1) { @@ -398,7 +397,7 @@ int main(int argc, char **argv) args.append(QString::fromLocal8Bit(argv[n])); parseCmdLine(args); - QVector classes; + QList classes; for (int i = 0; i < args.count(); ++i) { const QString arg = args.at(i); diff --git a/src/tools/qlalr/compress.cpp b/src/tools/qlalr/compress.cpp index 0ededbd920..eb4ccdc783 100644 --- a/src/tools/qlalr/compress.cpp +++ b/src/tools/qlalr/compress.cpp @@ -53,17 +53,15 @@ struct _PerfectMatch struct _GenerateCheck { - QVector::const_iterator iterator; - int initial; + QList::const_iterator iterator; + int initial; - _GenerateCheck (QVector::const_iterator it, int i): - iterator (it), - initial (i) {} + _GenerateCheck(QList::const_iterator it, int i) : iterator(it), initial(i) { } - inline int operator () () - { - int check = initial++; - return *iterator++ ? check : -1; + inline int operator()() + { + int check = initial++; + return *iterator++ ? check : -1; } }; @@ -151,7 +149,7 @@ void Compress::operator () (int *table, int row_count, int column_count) info.clear (); check.clear (); - QVector sortedTable (row_count); + QList sortedTable(row_count); for (int i = 0; i < row_count; ++i) { @@ -181,14 +179,15 @@ void Compress::operator () (int *table, int row_count, int column_count) for (const UncompressedRow &row : qAsConst(sortedTable)) { int first_token = std::distance (row.begin (), row.beginNonZeros ()); - QVector::iterator pos = info.begin (); + QList::iterator pos = info.begin(); while (pos != info.end ()) { if (pos == info.begin ()) { // try to find a perfect match - QVector::iterator pm = std::search (pos, info.end (), row.beginNonZeros (), row.endNonZeros (), _PerfectMatch ()); + QList::iterator pm = std::search(pos, info.end(), row.beginNonZeros(), + row.endNonZeros(), _PerfectMatch()); if (pm != info.end ()) { diff --git a/src/tools/qlalr/compress.h b/src/tools/qlalr/compress.h index 09a1c0cd64..e61ba32440 100644 --- a/src/tools/qlalr/compress.h +++ b/src/tools/qlalr/compress.h @@ -39,9 +39,9 @@ public: void operator () (int *table, int row_count, int column_count); public: - QVector index; - QVector info; - QVector check; + QList index; + QList info; + QList check; }; #endif // COMPRESS_H diff --git a/src/tools/qlalr/cppgenerator.cpp b/src/tools/qlalr/cppgenerator.cpp index 95f70dc988..cff97b132a 100644 --- a/src/tools/qlalr/cppgenerator.cpp +++ b/src/tools/qlalr/cppgenerator.cpp @@ -51,7 +51,7 @@ void generateSeparator(int i, QTextStream &out) } } -void generateList(const QVector &list, QTextStream &out) +void generateList(const QList &list, QTextStream &out) { for (int i = 0; i < list.size(); ++i) { generateSeparator(i, out); diff --git a/src/tools/qlalr/cppgenerator.h b/src/tools/qlalr/cppgenerator.h index 4b09460774..a83ec101fd 100644 --- a/src/tools/qlalr/cppgenerator.h +++ b/src/tools/qlalr/cppgenerator.h @@ -78,8 +78,8 @@ private: bool copyright; Compress compressed_action; Compress compressed_goto; - QVector count; - QVector defgoto; + QList count; + QList defgoto; }; #endif // CPPGENERATOR_H diff --git a/src/tools/qlalr/lalr.g b/src/tools/qlalr/lalr.g index a849800dd5..3c1d1d3ebd 100644 --- a/src/tools/qlalr/lalr.g +++ b/src/tools/qlalr/lalr.g @@ -139,7 +139,7 @@ protected: // recognizer int tos; int stack_size; - QVector sym_stack; + QList sym_stack; int *state_stack; QString _M_contents; diff --git a/src/tools/qlalr/recognizer.h b/src/tools/qlalr/recognizer.h index ac05d9f33f..001de3bcf1 100644 --- a/src/tools/qlalr/recognizer.h +++ b/src/tools/qlalr/recognizer.h @@ -76,7 +76,7 @@ protected: // recognizer int tos; int stack_size; - QVector sym_stack; + QList sym_stack; int *state_stack; QString _M_contents; diff --git a/src/tools/qvkgen/qvkgen.cpp b/src/tools/qvkgen/qvkgen.cpp index 4db3f26161..74137c8a63 100644 --- a/src/tools/qvkgen/qvkgen.cpp +++ b/src/tools/qvkgen/qvkgen.cpp @@ -45,11 +45,11 @@ public: struct Command { TypedName cmd; - QVector args; + QList args; bool deviceLevel; }; - QVector commands() const { return m_commands; } + QList commands() const { return m_commands; } void setFileName(const QString &fn) { m_fn = fn; } @@ -62,7 +62,7 @@ private: QFile m_file; QXmlStreamReader m_reader; - QVector m_commands; + QList m_commands; QString m_fn; }; @@ -262,7 +262,8 @@ QByteArray Preamble::get(const QString &fn) return m_str; } -bool genVulkanFunctionsH(const QVector &commands, const QString &licHeaderFn, const QString &outputBase) +bool genVulkanFunctionsH(const QList &commands, const QString &licHeaderFn, + const QString &outputBase) { QFile f(outputBase + QStringLiteral(".h")); if (!f.open(QIODevice::WriteOnly | QIODevice::Text)) { @@ -342,7 +343,8 @@ bool genVulkanFunctionsH(const QVector &commands, const Q return true; } -bool genVulkanFunctionsPH(const QVector &commands, const QString &licHeaderFn, const QString &outputBase) +bool genVulkanFunctionsPH(const QList &commands, const QString &licHeaderFn, + const QString &outputBase) { QFile f(outputBase + QStringLiteral("_p.h")); if (!f.open(QIODevice::WriteOnly | QIODevice::Text)) { @@ -401,7 +403,8 @@ bool genVulkanFunctionsPH(const QVector &commands, const return true; } -bool genVulkanFunctionsPC(const QVector &commands, const QString &licHeaderFn, const QString &outputBase) +bool genVulkanFunctionsPC(const QList &commands, const QString &licHeaderFn, + const QString &outputBase) { QFile f(outputBase + QStringLiteral("_p.cpp")); if (!f.open(QIODevice::WriteOnly | QIODevice::Text)) { @@ -499,7 +502,7 @@ int main(int argc, char **argv) if (!parser.parse()) return 1; - QVector commands = parser.commands(); + QList commands = parser.commands(); QStringList ignoredFuncs { QStringLiteral("vkCreateInstance"), QStringLiteral("vkDestroyInstance"), diff --git a/src/tools/tracegen/helpers.cpp b/src/tools/tracegen/helpers.cpp index a5526065d6..8ffc088fed 100644 --- a/src/tools/tracegen/helpers.cpp +++ b/src/tools/tracegen/helpers.cpp @@ -52,8 +52,8 @@ QString includeGuard(const QString &filename) return guard; } -template -static QString joinArguments(const QVector &args, T joinFunction) +template +static QString joinArguments(const QList &args, T joinFunction) { QString ret; bool first = true; @@ -70,14 +70,14 @@ static QString joinArguments(const QVector &args, T joinFu return ret; } -QString formatFunctionSignature(const QVector &args) +QString formatFunctionSignature(const QList &args) { return joinArguments(args, [](const Tracepoint::Argument &arg) { return QStringLiteral("%1 %2").arg(arg.type).arg(arg.name); }); } -QString formatParameterList(const QVector &args, ParamType type) +QString formatParameterList(const QList &args, ParamType type) { if (type == LTTNG) { QString ret; diff --git a/src/tools/tracegen/helpers.h b/src/tools/tracegen/helpers.h index 77f16a0da6..d55a956834 100644 --- a/src/tools/tracegen/helpers.h +++ b/src/tools/tracegen/helpers.h @@ -51,7 +51,7 @@ enum ParamType { }; QString includeGuard(const QString &filename); -QString formatFunctionSignature(const QVector &args); -QString formatParameterList(const QVector &args, ParamType type); +QString formatFunctionSignature(const QList &args); +QString formatParameterList(const QList &args, ParamType type); #endif // HELPERS_H diff --git a/src/tools/tracegen/provider.h b/src/tools/tracegen/provider.h index a4baf56815..b9ebc2ec5a 100644 --- a/src/tools/tracegen/provider.h +++ b/src/tools/tracegen/provider.h @@ -79,14 +79,14 @@ struct Tracepoint }; QString name; - QVector args; - QVector fields; + QList args; + QList fields; }; struct Provider { QString name; - QVector tracepoints; + QList tracepoints; QStringList prefixText; };