From 75f805f0ff262151d8f03e3f5187f73a5e0aad66 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 06:16:39 -0400 Subject: [PATCH] CVirtualDirectoryTreeView: Make use of in-class initializers where applicable --- .../ResourceBrowser/CVirtualDirectoryTreeView.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Editor/ResourceBrowser/CVirtualDirectoryTreeView.h b/src/Editor/ResourceBrowser/CVirtualDirectoryTreeView.h index 91fe8945..1cc76771 100644 --- a/src/Editor/ResourceBrowser/CVirtualDirectoryTreeView.h +++ b/src/Editor/ResourceBrowser/CVirtualDirectoryTreeView.h @@ -9,13 +9,14 @@ class CVirtualDirectoryTreeView : public QTreeView { Q_OBJECT - CVirtualDirectoryModel *mpModel; - bool mTransferSelectionPostMove; + CVirtualDirectoryModel *mpModel = nullptr; + bool mTransferSelectionPostMove = false; public: - CVirtualDirectoryTreeView(QWidget *pParent = 0); - void dragEnterEvent(QDragEnterEvent *pEvent); - void setModel(QAbstractItemModel *pModel); + explicit CVirtualDirectoryTreeView(QWidget *pParent = nullptr); + + void dragEnterEvent(QDragEnterEvent *pEvent) override; + void setModel(QAbstractItemModel *pModel) override; public slots: void OnDirectoryAboutToBeMoved(CVirtualDirectory *pDir);