diff options
author | Daniel Teske <daniel.teske@theqtcompany.com> | 2015-06-02 13:23:04 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@theqtcompany.com> | 2015-06-02 16:06:22 +0000 |
commit | 26059dbb1eb10966f8e3b9079ac2b054ac77aa54 (patch) | |
tree | ef081b896d6e457396c022df344ac8322fd9313c /src/libs/3rdparty/cplusplus/FullySpecifiedType.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 <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/FullySpecifiedType.h')
-rw-r--r-- | src/libs/3rdparty/cplusplus/FullySpecifiedType.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/3rdparty/cplusplus/FullySpecifiedType.h b/src/libs/3rdparty/cplusplus/FullySpecifiedType.h index 498e190330..4c7a21ddc3 100644 --- a/src/libs/3rdparty/cplusplus/FullySpecifiedType.h +++ b/src/libs/3rdparty/cplusplus/FullySpecifiedType.h @@ -33,7 +33,7 @@ public: ~FullySpecifiedType(); bool isValid() const; - operator bool() const; + explicit operator bool() const; Type *type() const; void setType(Type *type); |