- fixed compilation warnings reported by Clang

src/g_level.cpp:1575:16: warning: delete called on non-final 'DoomLevelAABBTree' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
src/p_setup.cpp:367:16: warning: delete called on non-final 'DoomLevelAABBTree' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
This commit is contained in:
alexey.lysiuk 2020-06-07 11:32:35 +03:00
parent 928c738e19
commit 718e2ea0f5

View file

@ -67,6 +67,9 @@ public:
size_t DynamicLinesOffset() const { return dynamicStartLine * sizeof(AABBTreeLine); } size_t DynamicLinesOffset() const { return dynamicStartLine * sizeof(AABBTreeLine); }
virtual bool Update() = 0; virtual bool Update() = 0;
virtual ~LevelAABBTree() = default;
protected: protected:
TArray<int> FindNodePath(unsigned int line, unsigned int node); TArray<int> FindNodePath(unsigned int line, unsigned int node);