qdbus_symbols: Use QFunctionPointer typedef
This makes function declarations much easier to read. Change-Id: Ib05433cda97a39f4a3b8c2759c32309a60716bfb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
5fa733e632
commit
d08d99a57b
|
|
@ -88,7 +88,7 @@ bool qdbus_loadLibDBus()
|
|||
#endif
|
||||
}
|
||||
|
||||
void (*qdbus_resolve_conditionally(const char *name))()
|
||||
QFunctionPointer qdbus_resolve_conditionally(const char *name)
|
||||
{
|
||||
#if QT_CONFIG(library)
|
||||
if (qdbus_loadLibDBus())
|
||||
|
|
@ -99,7 +99,7 @@ void (*qdbus_resolve_conditionally(const char *name))()
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
void (*qdbus_resolve_me(const char *name))()
|
||||
QFunctionPointer qdbus_resolve_me(const char *name)
|
||||
{
|
||||
#if QT_CONFIG(library)
|
||||
if (Q_UNLIKELY(!qdbus_loadLibDBus()))
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ QT_BEGIN_NAMESPACE
|
|||
|
||||
#if !defined QT_LINKED_LIBDBUS
|
||||
|
||||
void (*qdbus_resolve_conditionally(const char *name))(); // doesn't print a warning
|
||||
void (*qdbus_resolve_me(const char *name))(); // prints a warning
|
||||
QFunctionPointer qdbus_resolve_conditionally(const char *name); // doesn't print a warning
|
||||
QFunctionPointer qdbus_resolve_me(const char *name); // prints a warning
|
||||
bool qdbus_loadLibDBus();
|
||||
|
||||
//# define TRACE_DBUS_CALLS
|
||||
|
|
|
|||
Loading…
Reference in New Issue