summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-07-22 12:04:51 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-08-15 22:16:09 +0000
commitaeea30ebba4520b46e1e2780750748d06e4d2101 (patch)
tree73da45e268d0cfe0508e38f15e413deeff7bed55 /qmake
parentac1e87d9f373ad649d989f254b37d2f29ddf25fe (diff)
qmake: replace a uint:1 with a bool
It doesn't save any memory, generates worse code, and prevents a member-swap from being added. Change-Id: Iddc0f1338478e465f34076857e266f1912fbaba6 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/makefiledeps.h4
1 files changed, 2 insertions, 2 deletions
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; }