diff options
Diffstat (limited to 'src/corelib/kernel/qvariant.cpp')
-rw-r--r-- | src/corelib/kernel/qvariant.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp index ffc8634912..b9ccb2415e 100644 --- a/src/corelib/kernel/qvariant.cpp +++ b/src/corelib/kernel/qvariant.cpp @@ -341,9 +341,11 @@ static bool convert(const QVariant::Private *d, int t, void *result, bool *ok) *str = v_cast<QUrl>(d)->toString(); break; #endif +#ifndef QT_NO_QUUID_STRING case QVariant::Uuid: *str = v_cast<QUuid>(d)->toString(); break; +#endif default: return false; } @@ -720,9 +722,11 @@ static bool convert(const QVariant::Private *d, int t, void *result, bool *ok) #endif case QVariant::Uuid: switch (d->type) { +#ifndef QT_NO_QUUID_STRING case QVariant::String: *static_cast<QUuid *>(result) = QUuid(*v_cast<QString>(d)); break; +#endif default: return false; } |