mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 09:24:17 +00:00
Add initial .clang-tidy and fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ public:
|
||||
SetLODList(lodList);
|
||||
geometry = pRenderer->CreateGroup();
|
||||
}
|
||||
inline ~ViewROI()
|
||||
inline ~ViewROI() override
|
||||
{
|
||||
// SetLODList() will decrease refCount of LODList
|
||||
SetLODList(0);
|
||||
@@ -44,18 +44,18 @@ public:
|
||||
reinterpret_cast<ViewLODList*>(m_lods)->AddRef();
|
||||
}
|
||||
}
|
||||
virtual float IntrinsicImportance() const override; // vtable+0x04
|
||||
virtual void VTable0x1c() override; // vtable+0x1c
|
||||
virtual void SetLocalTransform(const Matrix4& p_transform) override; // vtable+0x20
|
||||
virtual void VTable0x24(const MxMatrix& p_transform) override; // vtable+0x24
|
||||
virtual const Tgl::Group* GetGeometry() const; // vtable+0x34
|
||||
virtual Tgl::Group* GetGeometry(); // vtable+0x30
|
||||
float IntrinsicImportance() const override; // vtable+0x04
|
||||
void VTable0x1c() override; // vtable+0x1c
|
||||
void SetLocalTransform(const Matrix4& p_transform) override; // vtable+0x20
|
||||
void VTable0x24(const MxMatrix& p_transform) override; // vtable+0x24
|
||||
virtual const Tgl::Group* GetGeometry() const; // vtable+0x34
|
||||
virtual Tgl::Group* GetGeometry(); // vtable+0x30
|
||||
|
||||
static undefined SetUnk101013d8(undefined p_flag);
|
||||
|
||||
protected:
|
||||
Tgl::Group* geometry;
|
||||
void UpdateWorldData(const MxMatrix& parent2world);
|
||||
void UpdateWorldData(const MxMatrix& parent2world) override;
|
||||
};
|
||||
|
||||
// SYNTHETIC: LEGO1 0x100aa250
|
||||
|
||||
Reference in New Issue
Block a user