diff options
Diffstat (limited to 'src/intent-server-lib/intent.cpp')
-rw-r--r-- | src/intent-server-lib/intent.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intent-server-lib/intent.cpp b/src/intent-server-lib/intent.cpp index 35ee0eac..15a47f21 100644 --- a/src/intent-server-lib/intent.cpp +++ b/src/intent-server-lib/intent.cpp @@ -189,15 +189,15 @@ bool Intent::checkParameterMatch(const QVariantMap ¶meters) const const QVariant requiredValue = rit.value(); const QVariant actualValue = pit.value(); - switch (requiredValue.type()) { - case QVariant::String: { + switch (requiredValue.metaType().id()) { + case QMetaType::QString: { QRegularExpression regexp(requiredValue.toString()); auto match = regexp.match(actualValue.toString()); if (!match.hasMatch()) return false; break; } - case QVariant::List: { + case QMetaType::QVariantList: { bool foundMatch = false; const QVariantList rvlist = requiredValue.toList(); for (const QVariant &rv2 : rvlist) { |