[libraries/qxmpp] src/client: Call: Remove qRegisterMetaType<QXmppCall::State>()

Linus Jahn <[email protected]> Wed, 5 Aug 2026 10:18:08 +0000 (UTC)
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit f47b901798eed902b3be01f714f2c46ffd6f0171 by Linus Jahn.
Committed on 05/08/2026 at 10:18.
Pushed by lnj into branch 'master'.

Call: Remove qRegisterMetaType<QXmppCall::State>()

Since Qt 6, metatypes are generated at compile time and queued
connections using the pointer-to-member-function syntax register them
automatically. Runtime registration is only needed for name-based
lookups, e.g. the string-based connect() syntax, which is not used with
this type.

Co-Authored-By: Claude Opus 5 <[email protected]>

M  +0    -2    src/client/QXmppCall.cpp

https://invent.kde.org/libraries/qxmpp/-/commit/f47b901798eed902b3be01f714f2c46ffd6f0171

diff --git a/src/client/QXmppCall.cpp b/src/client/QXmppCall.cpp
index 298c2d1f..1ef0c299 100644
--- a/src/client/QXmppCall.cpp
+++ b/src/client/QXmppCall.cpp
@@ -42,8 +42,6 @@ QXmppCallPrivate::QXmppCallPrivate(const QString &jid, const QString &sid, QXmpp
       error(std::move(error)),
       q(qq)
 {
-    qRegisterMetaType<QXmppCall::State>();
-
     // Skip GStreamer setup for calls that are already in an error state
     if (state == QXmppCall::FinishedState) {
         return;