From 00c17ac63af85bff97fbf09335ffd0e050d07f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 4 Jun 2024 17:42:18 +0200 Subject: [PATCH] QAction: Remove duplicated QDebug logic for handling null-actions We already include the action's address by printing static_cast(action), so no need to include the additional "0", as that just results in "QAction(0x00)". Change-Id: I8ce1f5030db146a737fa73bd8f2b86e89401d345 Reviewed-by: Volker Hilsheimer (cherry picked from commit a85c336597a80ca96ea745830c0d9776b98c835c) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qaction.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/kernel/qaction.cpp b/src/gui/kernel/qaction.cpp index c67cfd53b1a..35f7ec12bfd 100644 --- a/src/gui/kernel/qaction.cpp +++ b/src/gui/kernel/qaction.cpp @@ -1315,8 +1315,6 @@ Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAction *action) QtDebugUtils::formatQEnum(d, action->menuRole()); d << " enabled=" << action->isEnabled(); d << " visible=" << action->isVisible(); - } else { - d << '0'; } d << ')'; return d;