Initialize pointer variables with Q_NULLPTR.

This commit is contained in:
Akshay Joshi 2020-06-23 14:23:28 +05:30
parent c064eb0795
commit 18b3cc2683
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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