Fix Clang warning about applying operator|| to non-boolean

qmetatype_p.h:111:412: error: use of logical '||' with constant operand [-Werror,-Wconstant-logical-operand]

Change-Id: Iac6ae11e29bd4169bae9fffd15a117d576a95adb
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
bb10
Thiago Macieira 2019-05-22 12:25:51 -07:00
parent f2a10ea094
commit 7ffb5b2c8c
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ template <typename T>
class QTypeModuleInfo
{
public:
enum Module {
enum Module : bool {
IsCore = false,
IsWidget = false,
IsGui = false,
@ -87,7 +87,7 @@ template<> \
class QTypeModuleInfo<TYPE > \
{ \
public: \
enum Module { \
enum Module : bool { \
IsCore = (((MODULE) == (QModulesPrivate::Core))), \
IsWidget = (((MODULE) == (QModulesPrivate::Widgets))), \
IsGui = (((MODULE) == (QModulesPrivate::Gui))), \