Add initial .clang-tidy and fixes

This commit is contained in:
Christian Semmler
2024-01-31 02:16:17 -05:00
parent 9e0b19856c
commit 99c16d1392
306 changed files with 2780 additions and 1958 deletions

View File

@@ -27,7 +27,7 @@ class ViewLODList : public LODList<ViewLOD> {
protected:
ViewLODList(size_t capacity);
~ViewLODList();
~ViewLODList() override;
public:
inline int AddRef();
@@ -133,8 +133,9 @@ inline int ViewLODList::AddRef()
inline int ViewLODList::Release()
{
assert(m_refCount > 0);
if (!--m_refCount)
if (!--m_refCount) {
m_owner->Destroy(this);
}
return m_refCount;
}