Fix qt5 build and test not overloading == operator

This commit is contained in:
Simon Stürz 2025-08-07 13:40:56 +02:00
parent f5c4bd16ac
commit 3a234066ef
2 changed files with 2 additions and 5 deletions

View File

@ -424,7 +424,7 @@ bool StateEvaluator::evaluateDescriptor(const StateDescriptor &descriptor) const
return result;
#else
bool res = convertedValue.convert(state.value().type());
bool res = descriptorValue.convert(state.value().type());
if (!res) {
return false;
}

View File

@ -48,9 +48,6 @@ public: \
type##Id(): QUuid() {} \
type##Id(const QString &uuidString): QUuid(QAnyStringView(uuidString)) {} \
static type##Id create##type##Id() { return type##Id(QUuid::createUuid()); } \
bool operator==(const type##Id &other) const { \
return toString() == other.toString(); \
} \
}; \
Q_DECLARE_METATYPE(type##Id);
#else
@ -64,7 +61,7 @@ Q_DECLARE_METATYPE(type##Id);
return toString() == other.toString(); \
} \
}; \
Q_DECLARE_METATYPE(type##Id);
Q_DECLARE_METATYPE(type##Id);
#endif
DECLARE_TYPE_ID(Vendor)