From ca59b8d69bf937fcc475b22cbd527daca6de568c Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sat, 16 Jul 2022 15:29:53 -0700 Subject: [PATCH] Debugger: move the Q_DECLARE_METATYPE to after the class is declared The Q_D_M is optional, but if you're going to use it, it must be on a fully-declared type. qmetatype.h:1137:9: error: static_assert failed due to requirement 'is_complete::value || std::is_void_v' "Meta Types must be fully defined" Change-Id: I36b24183fbd041179f2ffffd17026fd9c3ab2459 Reviewed-by: hjk --- src/plugins/debugger/debuggerdialogs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/debuggerdialogs.cpp b/src/plugins/debugger/debuggerdialogs.cpp index fb8da55b553..c2fffa59d91 100644 --- a/src/plugins/debugger/debuggerdialogs.cpp +++ b/src/plugins/debugger/debuggerdialogs.cpp @@ -99,8 +99,6 @@ public: } // Debugger::Internal -Q_DECLARE_METATYPE(Debugger::Internal::StartApplicationParameters) - namespace Debugger::Internal { /////////////////////////////////////////////////////////////////////// @@ -943,3 +941,5 @@ void TypeFormatsDialog::addTypeFormats(const QString &type0, } } // Debugger::Internal + +Q_DECLARE_METATYPE(Debugger::Internal::StartApplicationParameters)