diff options
author | Daniel Teske <[email protected]> | 2015-06-02 13:23:04 +0200 |
---|---|---|
committer | Daniel Teske <[email protected]> | 2015-06-02 16:06:22 +0000 |
commit | 26059dbb1eb10966f8e3b9079ac2b054ac77aa54 (patch) | |
tree | ef081b896d6e457396c022df344ac8322fd9313c /src/libs/qmljs/qmljsmodelmanagerinterface.h | |
parent | 2189464a840a13a51a99458a364667c40d09fb75 (diff) |
Make every operator bool() explicit
operator bool() is a trap, but with explicit it's far safer,
and we can use that now.
Change-Id: I4e58631c94e87c00256c3ab3cff4fd2c5f632713
Reviewed-by: Friedemann Kleint <[email protected]>
Reviewed-by: Nikolai Kosjar <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsmodelmanagerinterface.h')
-rw-r--r-- | src/libs/qmljs/qmljsmodelmanagerinterface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljsmodelmanagerinterface.h b/src/libs/qmljs/qmljsmodelmanagerinterface.h index 18ed602fc40..551db94da55 100644 --- a/src/libs/qmljs/qmljsmodelmanagerinterface.h +++ b/src/libs/qmljs/qmljsmodelmanagerinterface.h @@ -78,7 +78,7 @@ public: , tryQmlDump(false), qmlDumpHasRelocatableFlag(true) { } - operator bool() const + explicit operator bool() const { return ! project.isNull(); } bool isValid() const |