From 1f1cbf53f95327334d6f8c8c10d6bb360fe40e32 Mon Sep 17 00:00:00 2001 From: Koncord Date: Fri, 19 Jan 2018 15:54:55 +0800 Subject: [PATCH] [Client] Mark trivial destructor as default, remove "virtual" keyword Mark constructor as explicit --- apps/openmw/mwmp/Cell.cpp | 5 ----- apps/openmw/mwmp/Cell.hpp | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/openmw/mwmp/Cell.cpp b/apps/openmw/mwmp/Cell.cpp index d24ebbd37..18724dc99 100644 --- a/apps/openmw/mwmp/Cell.cpp +++ b/apps/openmw/mwmp/Cell.cpp @@ -27,11 +27,6 @@ mwmp::Cell::Cell(MWWorld::CellStore* cellStore) updateTimer = 0; } -Cell::~Cell() -{ - -} - void Cell::updateLocal(bool forceUpdate) { if (localActors.empty()) diff --git a/apps/openmw/mwmp/Cell.hpp b/apps/openmw/mwmp/Cell.hpp index 77fd43077..3f8f3d082 100644 --- a/apps/openmw/mwmp/Cell.hpp +++ b/apps/openmw/mwmp/Cell.hpp @@ -12,8 +12,8 @@ namespace mwmp { public: - Cell(MWWorld::CellStore* cellStore); - virtual ~Cell(); + explicit Cell(MWWorld::CellStore* cellStore); + ~Cell() = default; void updateLocal(bool forceUpdate); void updateDedicated(float dt);