From 986d89c2eefd37ee0da8e07d7794716000608610 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Mon, 29 Jun 2020 14:26:36 +0200 Subject: Automatically register comparison operators in QMetaType This removes the fully manual registration of comparison operators in QMetaType and replaces it with an automatic registration through Q_DECLARE_METATYPE(). [ChangeLog][QMetaType] The QMetaType::registerComparator() and QMetaType::registerEqualsComparator() have been removed. Q_DECLARE_METATYPE() now automatically registers any operator==() and/or operator<() for a type visible where it is used on that type, as part of declaring its meta-type. Change-Id: I3df451b652b735c093533838bf32f3cc785439f8 Reviewed-by: Lars Knoll Reviewed-by: Ulf Hermann Reviewed-by: Edward Welbourne --- src/dbus/qdbusmetaobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dbus') diff --git a/src/dbus/qdbusmetaobject.cpp b/src/dbus/qdbusmetaobject.cpp index dc52dacca5..d308151984 100644 --- a/src/dbus/qdbusmetaobject.cpp +++ b/src/dbus/qdbusmetaobject.cpp @@ -139,7 +139,7 @@ static int registerComplexDBusType(const QByteArray &typeName) [](QtPrivate::QMetaTypeInterface *self) { delete static_cast(self); }, - nullptr, nullptr, nullptr, nullptr, nullptr + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr }, name(name) {} -- cgit v1.2.3