diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp index d38b8ad9f4..51f7eb95a3 100644 --- a/qmake/generators/makefile.cpp +++ b/qmake/generators/makefile.cpp @@ -601,7 +601,7 @@ MakefileGenerator::init() int x; //build up a list of compilers - QVector compilers; + QList compilers; { const char *builtins[] = { "OBJECTS", "SOURCES", "PRECOMPILED_HEADER", nullptr }; for(x = 0; builtins[x]; ++x) { @@ -764,7 +764,7 @@ MakefileGenerator::init() ProStringList incDirs = v["DEPENDPATH"] + v["QMAKE_ABSOLUTE_SOURCE_PATH"]; if(project->isActiveConfig("depend_includepath")) incDirs += v["INCLUDEPATH"]; - QVector deplist; + QList deplist; deplist.reserve(incDirs.size()); for (ProStringList::Iterator it = incDirs.begin(); it != incDirs.end(); ++it) deplist.append(QMakeLocalFileName((*it).toQString())); @@ -1826,7 +1826,7 @@ static QStringList splitDeps(const QString &indeps, bool lineMode) QString MakefileGenerator::resolveDependency(const QDir &outDir, const QString &file) { - const QVector &depdirs = QMakeSourceFileInfo::dependencyPaths(); + const QList &depdirs = QMakeSourceFileInfo::dependencyPaths(); for (const auto &depdir : depdirs) { const QString &local = depdir.local(); QString lf = outDir.absoluteFilePath(local + '/' + file); @@ -3095,7 +3095,7 @@ MakefileGenerator::findFileForDep(const QMakeLocalFileName &dep, const QMakeLoca if(Option::output_dir != qmake_getpwd() && QDir::isRelativePath(dep.real())) { //is it from the shadow tree - QVector depdirs = QMakeSourceFileInfo::dependencyPaths(); + QList depdirs = QMakeSourceFileInfo::dependencyPaths(); depdirs.prepend(fileInfo(file.real()).absoluteDir().path()); QString pwd = qmake_getpwd(); if(pwd.at(pwd.length()-1) != '/') diff --git a/qmake/generators/makefiledeps.cpp b/qmake/generators/makefiledeps.cpp index 0ff64c4fbc..f1b1e4b216 100644 --- a/qmake/generators/makefiledeps.cpp +++ b/qmake/generators/makefiledeps.cpp @@ -192,10 +192,10 @@ void QMakeSourceFileInfo::dependTreeWalker(SourceFile *node, SourceDependChildre } } -void QMakeSourceFileInfo::setDependencyPaths(const QVector &l) +void QMakeSourceFileInfo::setDependencyPaths(const QList &l) { // Ensure that depdirs does not contain the same paths several times, to minimize the stats - QVector ll; + QList ll; for (int i = 0; i < l.count(); ++i) { if (!ll.contains(l.at(i))) ll.append(l.at(i)); diff --git a/qmake/generators/makefiledeps.h b/qmake/generators/makefiledeps.h index b97ace42a6..31587371ef 100644 --- a/qmake/generators/makefiledeps.h +++ b/qmake/generators/makefiledeps.h @@ -31,9 +31,9 @@ #include -#include #include -#include +#include +#include QT_BEGIN_NAMESPACE @@ -66,7 +66,7 @@ private: //quick project lookups SourceFiles *files, *includes; bool files_changed; - QVector depdirs; + QList depdirs; QStringList systemIncludes; //sleezy buffer code @@ -89,8 +89,8 @@ public: QMakeSourceFileInfo(); virtual ~QMakeSourceFileInfo(); - QVector dependencyPaths() const { return depdirs; } - void setDependencyPaths(const QVector &); + QList dependencyPaths() const { return depdirs; } + void setDependencyPaths(const QList &); enum DependencyMode { Recursive, NonRecursive }; inline void setDependencyMode(DependencyMode mode) { dep_mode = mode; } diff --git a/qmake/generators/metamakefile.cpp b/qmake/generators/metamakefile.cpp index 7776d77008..8d1eb1d886 100644 --- a/qmake/generators/metamakefile.cpp +++ b/qmake/generators/metamakefile.cpp @@ -258,7 +258,7 @@ void BuildsMetaMakefileGenerator::checkForConflictingTargets() const return; } using TargetInfo = std::pair; - QVector targets; + QList targets; const int last = makefiles.count() - 1; targets.resize(last); for (int i = 0; i < last; ++i) { diff --git a/qmake/generators/projectgenerator.cpp b/qmake/generators/projectgenerator.cpp index ac6793cbf3..4e1b32fb69 100644 --- a/qmake/generators/projectgenerator.cpp +++ b/qmake/generators/projectgenerator.cpp @@ -215,7 +215,7 @@ ProjectGenerator::init() } //setup deplist - QVector deplist; + QList deplist; { const ProStringList &d = v["DEPENDPATH"]; for(int i = 0; i < d.size(); ++i) diff --git a/qmake/generators/unix/unixmake.cpp b/qmake/generators/unix/unixmake.cpp index f7bd6dc663..07f8d861dc 100644 --- a/qmake/generators/unix/unixmake.cpp +++ b/qmake/generators/unix/unixmake.cpp @@ -391,7 +391,7 @@ UnixMakefileGenerator::fixLibFlag(const ProString &lib) bool UnixMakefileGenerator::findLibraries(bool linkPrl, bool mergeLflags) { - QVector libdirs, frameworkdirs; + QList libdirs, frameworkdirs; int libidx = 0, fwidx = 0; for (const ProString &dlib : project->values("QMAKE_DEFAULT_LIBDIRS")) libdirs.append(QMakeLocalFileName(dlib.toQString())); diff --git a/qmake/generators/win32/msvc_objectmodel.h b/qmake/generators/win32/msvc_objectmodel.h index 8793c793ef..67310cc33c 100644 --- a/qmake/generators/win32/msvc_objectmodel.h +++ b/qmake/generators/win32/msvc_objectmodel.h @@ -958,7 +958,7 @@ public: VCCLCompilerTool CompilerTool; }; -typedef QVector VCFilterList; +typedef QList VCFilterList; class VCProjectSingleConfig { public: diff --git a/qmake/generators/win32/msvc_vcproj.cpp b/qmake/generators/win32/msvc_vcproj.cpp index ddb6bf5b4e..477205a7f7 100644 --- a/qmake/generators/win32/msvc_vcproj.cpp +++ b/qmake/generators/win32/msvc_vcproj.cpp @@ -355,7 +355,7 @@ ProStringList VcprojGenerator::collectDependencies(QMakeProject *proj, QHash &subdirProjectLookup, const ProStringList &allDependencies) { - QVector > collectedSubdirs; + QList> collectedSubdirs; ProStringList tmp_proj_subdirs = proj->values("SUBDIRS"); ProStringList projectsInProject; const int numSubdirs = tmp_proj_subdirs.size(); diff --git a/qmake/generators/win32/winmakefile.cpp b/qmake/generators/win32/winmakefile.cpp index 0c32be8ef6..422919b872 100644 --- a/qmake/generators/win32/winmakefile.cpp +++ b/qmake/generators/win32/winmakefile.cpp @@ -102,7 +102,7 @@ Win32MakefileGenerator::findLibraries(bool linkPrl, bool mergeLflags) ProStringList impexts = project->values("QMAKE_LIB_EXTENSIONS"); if (impexts.isEmpty()) impexts = project->values("QMAKE_EXTENSION_STATICLIB"); - QVector dirs; + QList dirs; int libidx = 0; for (const ProString &dlib : project->values("QMAKE_DEFAULT_LIBDIRS")) dirs.append(LibrarySearchPath(dlib.toQString(), true)); diff --git a/qmake/library/proitems.h b/qmake/library/proitems.h index bef93795d2..24412098d6 100644 --- a/qmake/library/proitems.h +++ b/qmake/library/proitems.h @@ -32,10 +32,10 @@ #include "qmake_global.h" #include -#include -#include #include +#include #include +#include QT_BEGIN_NAMESPACE @@ -311,7 +311,7 @@ private: const ProString *m_ps; }; -class ProStringList : public QVector { +class ProStringList : public QList { public: ProStringList() {} ProStringList(const ProString &str) { *this << str; } @@ -319,7 +319,7 @@ public: QStringList toQStringList() const; ProStringList &operator<<(const ProString &str) - { QVector::operator<<(str); return *this; } + { QList::operator<<(str); return *this; } int length() const { return size(); } diff --git a/qmake/main.cpp b/qmake/main.cpp index 36ba631127..4c3c92c296 100644 --- a/qmake/main.cpp +++ b/qmake/main.cpp @@ -67,7 +67,7 @@ Q_DECLARE_TYPEINFO(SedSubst, Q_MOVABLE_TYPE); static int doSed(int argc, char **argv) { - QVector substs; + QList substs; QList inFiles; for (int i = 0; i < argc; i++) { if (!strcmp(argv[i], "-e")) {