summaryrefslogtreecommitdiffstats
path: root/qmake/generators
diff options
context:
space:
mode:
Diffstat (limited to 'qmake/generators')
-rw-r--r--qmake/generators/makefile.cpp2
-rw-r--r--qmake/generators/makefile.h3
-rw-r--r--qmake/generators/makefiledeps.h4
-rw-r--r--qmake/generators/win32/msvc_objectmodel.h8
4 files changed, 8 insertions, 9 deletions
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp
index 0d1831d987..11b1c8329d 100644
--- a/qmake/generators/makefile.cpp
+++ b/qmake/generators/makefile.cpp
@@ -612,7 +612,7 @@ MakefileGenerator::init()
int x;
//build up a list of compilers
- QList<Compiler> compilers;
+ QVector<Compiler> compilers;
{
const char *builtins[] = { "OBJECTS", "SOURCES", "PRECOMPILED_HEADER", 0 };
for(x = 0; builtins[x]; ++x) {
diff --git a/qmake/generators/makefile.h b/qmake/generators/makefile.h
index a67a0ec0fc..86fec748eb 100644
--- a/qmake/generators/makefile.h
+++ b/qmake/generators/makefile.h
@@ -155,6 +155,8 @@ protected:
};
uint flags, type;
};
+ friend class QTypeInfo<Compiler>;
+
void initCompiler(const Compiler &comp);
enum VPATHFlag {
VPATH_NoFlag = 0x00,
@@ -264,6 +266,7 @@ public:
bool isWindowsShell() const { return Option::dir_sep == QLatin1String("\\"); }
QString shellQuote(const QString &str);
};
+Q_DECLARE_TYPEINFO(MakefileGenerator::Compiler, Q_MOVABLE_TYPE);
Q_DECLARE_OPERATORS_FOR_FLAGS(MakefileGenerator::FileFixifyTypes)
inline void MakefileGenerator::setNoIO(bool o)
diff --git a/qmake/generators/makefiledeps.h b/qmake/generators/makefiledeps.h
index 3b0c6ce803..034197fd31 100644
--- a/qmake/generators/makefiledeps.h
+++ b/qmake/generators/makefiledeps.h
@@ -41,10 +41,10 @@ struct SourceDependChildren;
class SourceFiles;
class QMakeLocalFileName {
- uint is_null : 1;
+ bool is_null;
mutable QString real_name, local_name;
public:
- QMakeLocalFileName() : is_null(1) { }
+ QMakeLocalFileName() : is_null(true) {}
QMakeLocalFileName(const QString &);
bool isNull() const { return is_null; }
inline const QString &real() const { return real_name; }
diff --git a/qmake/generators/win32/msvc_objectmodel.h b/qmake/generators/win32/msvc_objectmodel.h
index dfbfaacfa8..0f3665eba8 100644
--- a/qmake/generators/win32/msvc_objectmodel.h
+++ b/qmake/generators/win32/msvc_objectmodel.h
@@ -860,7 +860,6 @@ class VCConfiguration
public:
// Functions
VCConfiguration();
- ~VCConfiguration(){}
bool suppressUnknownOptionWarnings;
DotNET CompilerVersion;
@@ -936,7 +935,6 @@ class VCFilter
public:
// Functions
VCFilter();
- ~VCFilter(){}
void addFile(const QString& filename);
void addFile(const VCFilterFile& fileInfo);
@@ -962,7 +960,7 @@ public:
VCCLCompilerTool CompilerTool;
};
-typedef QList<VCFilter> VCFilterList;
+typedef QVector<VCFilter> VCFilterList;
class VCProjectSingleConfig
{
public:
@@ -976,9 +974,6 @@ public:
Resources,
Extras
};
- // Functions
- VCProjectSingleConfig(){}
- ~VCProjectSingleConfig(){}
// Variables
QString Name;
@@ -1009,6 +1004,7 @@ public:
const VCFilter &filterByName(const QString &name) const;
const VCFilter &filterForExtraCompiler(const QString &compilerName) const;
};
+Q_DECLARE_TYPEINFO(VCProjectSingleConfig, Q_MOVABLE_TYPE);
// Tree & Flat view of files --------------------------------------------------
class VCFilter;