From 298e9b501c885f09d2d4e5450f8650ec09675e49 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 05:21:40 -0400 Subject: [PATCH] CResourceTableContextMenu: Make use of in-class initializers where applicable --- src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp | 2 -- src/Editor/ResourceBrowser/CResourceTableContextMenu.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp b/src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp index bb78cd48..bd93b72d 100644 --- a/src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp +++ b/src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp @@ -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))); diff --git a/src/Editor/ResourceBrowser/CResourceTableContextMenu.h b/src/Editor/ResourceBrowser/CResourceTableContextMenu.h index 68137c5b..c8dcfb6e 100644 --- a/src/Editor/ResourceBrowser/CResourceTableContextMenu.h +++ b/src/Editor/ResourceBrowser/CResourceTableContextMenu.h @@ -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);