diff options
Diffstat (limited to 'src/dbus/qdbusmetaobject.cpp')
-rw-r--r-- | src/dbus/qdbusmetaobject.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dbus/qdbusmetaobject.cpp b/src/dbus/qdbusmetaobject.cpp index 2e367e63ac..543b185df9 100644 --- a/src/dbus/qdbusmetaobject.cpp +++ b/src/dbus/qdbusmetaobject.cpp @@ -148,7 +148,8 @@ QDBusMetaObjectGenerator::findType(const QByteArray &signature, .arg(id); // extract from annotations: - QByteArray typeName = annotations.value(annotationName).toLatin1(); + auto annotation = annotations.value(annotationName); + QByteArray typeName = annotation.value.toLatin1(); // verify that it's a valid one if (typeName.isEmpty()) { @@ -158,7 +159,8 @@ QDBusMetaObjectGenerator::findType(const QByteArray &signature, annotationName += QString::fromLatin1(".%1%2") .arg(QLatin1StringView(direction)) .arg(id); - typeName = annotations.value(annotationName).toLatin1(); + annotation = annotations.value(annotationName); + typeName = annotation.value.toLatin1(); } if (!typeName.isEmpty()) { @@ -269,7 +271,7 @@ void QDBusMetaObjectGenerator::parseMethods() prototype.append(')'); // check the async tag - if (m.annotations.value(ANNOTATION_NO_WAIT ""_L1) == "true"_L1) + if (m.annotations.value(ANNOTATION_NO_WAIT ""_L1).value == "true"_L1) mm.tag = "Q_NOREPLY"; // meta method flags |