From e38410b76c40ffde33cf1ab405926cd243c4e48c Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 19 Jul 2018 16:39:41 +0200 Subject: Utils: Modernize modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default Change-Id: I8d44d9405011a1878353baf9325f7af90b89db02 Reviewed-by: hjk --- src/libs/utils/proxyaction.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libs/utils/proxyaction.cpp') diff --git a/src/libs/utils/proxyaction.cpp b/src/libs/utils/proxyaction.cpp index 06e85d59ad..3bfbfa399c 100644 --- a/src/libs/utils/proxyaction.cpp +++ b/src/libs/utils/proxyaction.cpp @@ -29,8 +29,8 @@ using namespace Utils; ProxyAction::ProxyAction(QObject *parent) : QAction(parent), - m_action(0), - m_attributes(0), + m_action(nullptr), + m_attributes(nullptr), m_showShortcut(false), m_block(false) { @@ -178,7 +178,7 @@ QString ProxyAction::stringWithAppendedShortcut(const QString &str, const QKeySe ProxyAction *ProxyAction::proxyActionWithIcon(QAction *original, const QIcon &newIcon) { - ProxyAction *proxyAction = new ProxyAction(original); + auto proxyAction = new ProxyAction(original); proxyAction->setAction(original); proxyAction->setIcon(newIcon); proxyAction->setAttribute(UpdateText); -- cgit v1.2.1