From eabb3fd2f03f81f738a6128b7b09d92f0731522c Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sun, 9 Jan 2022 08:07:23 -0800 Subject: [PATCH] QVariant: fix incorrect warning about duplicated alias where there isn't We were always matching a type name to itself because we forgot to advance the iterator after we did match. The issue was introduced in commit 46dc8e453ae1d0c1eb749cfebe686995f3a6cfd0. Fixes: QTBUG-99620 Task-number: QTBUG-96916 Pick-to: 6.3 6.2 Change-Id: Ib42b3adc93bf4d43bd55fffd16c8a5df6306e404 Reviewed-by: Friedemann Kleint Reviewed-by: Marc Mutz Reviewed-by: Jonas Kvinge --- src/corelib/kernel/qmetatype.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/corelib/kernel/qmetatype.cpp b/src/corelib/kernel/qmetatype.cpp index 476234d7c5..57a4a3063b 100644 --- a/src/corelib/kernel/qmetatype.cpp +++ b/src/corelib/kernel/qmetatype.cpp @@ -200,6 +200,7 @@ const char *QtMetaTypePrivate::typedefNameForType(const QtPrivate::QMetaTypeInte if (it.key() == officialName) continue; // skip the official name name = it.key().constData(); + ++it; break; }