QDBusError: Disable function that isn't used in bootstrapped builds
Change-Id: Id3d5c7bf4d4c45069621ffff13f7b73144537d81 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>bb10
parent
4e6e71aa8d
commit
fd57ec5c5f
|
|
@ -142,6 +142,7 @@ static inline const char *get(QDBusError::ErrorType code)
|
|||
return errorMessages_string + errorMessages_indices[intcode];
|
||||
}
|
||||
|
||||
#ifndef QT_BOOTSTRAPPED
|
||||
static inline QDBusError::ErrorType get(const char *name)
|
||||
{
|
||||
if (!name || !*name)
|
||||
|
|
@ -151,6 +152,7 @@ static inline QDBusError::ErrorType get(const char *name)
|
|||
return QDBusError::ErrorType(i + int(QDBusError::Other));
|
||||
return QDBusError::Other;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*!
|
||||
\class QDBusError
|
||||
|
|
|
|||
Loading…
Reference in New Issue