From 3fb37b1210e88852c43cfa5fef10006102ed46bc Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 5 Jul 2024 10:01:27 +0200 Subject: [PATCH] Core: Correct declaration of Context debug output function Amends 104ea4acc. Hidden friends don't work when declared in the wrong class. This here happened to go unnoticed as it was nowhere used. Change-Id: Ie26d5c777c85e143a6b7189ccbd87aedd2502df0 Reviewed-by: Eike Ziller --- src/plugins/coreplugin/icontext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/coreplugin/icontext.h b/src/plugins/coreplugin/icontext.h index 45d53ccddcb..1116d1021c8 100644 --- a/src/plugins/coreplugin/icontext.h +++ b/src/plugins/coreplugin/icontext.h @@ -41,6 +41,8 @@ public: void add(Utils::Id c) { d.append(c); } bool operator==(const Context &c) const { return d == c.d; } + friend CORE_EXPORT QDebug operator<<(QDebug debug, const Core::Context &context); + private: QList d; }; @@ -64,8 +66,6 @@ public: const Context &context, const HelpItem &contextHelp = {}); - friend CORE_EXPORT QDebug operator<<(QDebug debug, const Core::Context &context); - protected: Context m_context; QPointer m_widget;