mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Merge branch 'master' into more-generic-pi
This commit is contained in:
@@ -41,9 +41,10 @@
|
|||||||
# define KDAB_USING_SAFE_BOOL_OPERATOR( Class ) operator unspecified_bool_type() const;
|
# define KDAB_USING_SAFE_BOOL_OPERATOR( Class ) operator unspecified_bool_type() const;
|
||||||
#else
|
#else
|
||||||
# define KDAB_IMPLEMENT_SAFE_BOOL_OPERATOR( func ) \
|
# define KDAB_IMPLEMENT_SAFE_BOOL_OPERATOR( func ) \
|
||||||
private: struct __safe_bool_dummy__ { void nonnull() {} }; \
|
private: \
|
||||||
typedef void ( __safe_bool_dummy__::*unspecified_bool_type )(); \
|
struct __safe_bool_dummy__ { void nonnull() {} }; \
|
||||||
public: \
|
public: \
|
||||||
|
typedef void ( __safe_bool_dummy__::*unspecified_bool_type )(); \
|
||||||
operator unspecified_bool_type() const { \
|
operator unspecified_bool_type() const { \
|
||||||
return ( func ) ? &__safe_bool_dummy__::nonnull : 0 ; \
|
return ( func ) ? &__safe_bool_dummy__::nonnull : 0 ; \
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user