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>
This commit is contained in:
parent
ac1e87d9f3
commit
aeea30ebba
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user