From 18b3cc268355475d5c3bd912514be7307c27ea61 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Tue, 23 Jun 2020 14:23:28 +0530 Subject: [PATCH] =?UTF-8?q?Initialize=20pointer=20variables=20with=C2=A0Q?= =?UTF-8?q?=5FNULLPTR.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- runtime/FloatingWindow.h | 4 ++-- runtime/TrayIcon.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/FloatingWindow.h b/runtime/FloatingWindow.h index 7a77771f1..6661ed16f 100644 --- a/runtime/FloatingWindow.h +++ b/runtime/FloatingWindow.h @@ -46,8 +46,8 @@ private: QAction *m_logAction = Q_NULLPTR; QAction *m_quitAction = Q_NULLPTR; - QMenu *m_floatingWindowMenu; - MenuActions *m_menuActions; + QMenu *m_floatingWindowMenu = Q_NULLPTR; + MenuActions *m_menuActions = Q_NULLPTR; signals: void shutdownSignal(QUrl); diff --git a/runtime/TrayIcon.h b/runtime/TrayIcon.h index be54f0d84..9f07b420d 100644 --- a/runtime/TrayIcon.h +++ b/runtime/TrayIcon.h @@ -39,10 +39,10 @@ private: QAction *m_logAction = Q_NULLPTR; QAction *m_quitAction = Q_NULLPTR; - QSystemTrayIcon *m_trayIcon; - QMenu *m_trayIconMenu; + QSystemTrayIcon *m_trayIcon = Q_NULLPTR; + QMenu *m_trayIconMenu = Q_NULLPTR; - MenuActions *m_menuActions; + MenuActions *m_menuActions = Q_NULLPTR; }; #endif // TRAYICON_H