diff --git a/src/Editor/WorldEditor/CLayerModel.cpp b/src/Editor/WorldEditor/CLayerModel.cpp index bfea6c4f..3cf7f689 100644 --- a/src/Editor/WorldEditor/CLayerModel.cpp +++ b/src/Editor/WorldEditor/CLayerModel.cpp @@ -4,13 +4,10 @@ CLayerModel::CLayerModel(QObject *pParent) : QAbstractListModel(pParent) - , mpArea(nullptr) { } -CLayerModel::~CLayerModel() -{ -} +CLayerModel::~CLayerModel() = default; int CLayerModel::rowCount(const QModelIndex& /*parent*/) const { diff --git a/src/Editor/WorldEditor/CLayerModel.h b/src/Editor/WorldEditor/CLayerModel.h index 209dc3d7..44e57a5a 100644 --- a/src/Editor/WorldEditor/CLayerModel.h +++ b/src/Editor/WorldEditor/CLayerModel.h @@ -9,10 +9,11 @@ class CLayerModel : public QAbstractListModel TResPtr mpArea; public: - explicit CLayerModel(QObject *pParent = 0); - ~CLayerModel(); - int rowCount(const QModelIndex &parent) const; - QVariant data(const QModelIndex &index, int role) const; + explicit CLayerModel(QObject *pParent = nullptr); + ~CLayerModel() override; + + int rowCount(const QModelIndex &parent) const override; + QVariant data(const QModelIndex &index, int role) const override; void SetArea(CGameArea *pArea); CScriptLayer* Layer(const QModelIndex& index) const; };