CResourceTableContextMenu: Make use of in-class initializers where applicable

This commit is contained in:
Lioncash 2020-06-28 05:21:40 -04:00
parent 57072ffeb4
commit 298e9b501c
2 changed files with 2 additions and 4 deletions

View File

@ -12,8 +12,6 @@ CResourceTableContextMenu::CResourceTableContextMenu(CResourceBrowser *pBrowser,
, mpTable(pView)
, mpModel(pModel)
, mpProxy(pProxy)
, mpClickedEntry(nullptr)
, mpClickedDirectory(nullptr)
{
// Connect to the view
connect(pView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(ShowMenu(QPoint)));

View File

@ -19,8 +19,8 @@ class CResourceTableContextMenu : public QMenu
QModelIndexList mSelectedIndexes;
QModelIndex mClickedIndex;
QModelIndex mClickedProxyIndex;
CResourceEntry *mpClickedEntry;
CVirtualDirectory *mpClickedDirectory;
CResourceEntry *mpClickedEntry = nullptr;
CVirtualDirectory *mpClickedDirectory = nullptr;
public:
CResourceTableContextMenu(CResourceBrowser *pBrowser, QTableView *pView, CResourceTableModel *pModel, CResourceProxyModel *pProxy);