diff --git a/src/libtomahawk/kdsingleapplicationguard/kdtoolsglobal.h b/src/libtomahawk/kdsingleapplicationguard/kdtoolsglobal.h index 4e8d0d673..a0f004589 100644 --- a/src/libtomahawk/kdsingleapplicationguard/kdtoolsglobal.h +++ b/src/libtomahawk/kdsingleapplicationguard/kdtoolsglobal.h @@ -41,9 +41,10 @@ # define KDAB_USING_SAFE_BOOL_OPERATOR( Class ) operator unspecified_bool_type() const; #else # define KDAB_IMPLEMENT_SAFE_BOOL_OPERATOR( func ) \ - private: struct __safe_bool_dummy__ { void nonnull() {} }; \ - typedef void ( __safe_bool_dummy__::*unspecified_bool_type )(); \ + private: \ + struct __safe_bool_dummy__ { void nonnull() {} }; \ public: \ + typedef void ( __safe_bool_dummy__::*unspecified_bool_type )(); \ operator unspecified_bool_type() const { \ return ( func ) ? &__safe_bool_dummy__::nonnull : 0 ; \ }