2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 22:27:41 +00:00

CollisionPrimitive: Make use of constexpr types where applicable

We can now mark some usages of these types as constexpr and also make
them fully internal to the translation unit.
This commit is contained in:
Lioncash
2019-10-29 16:12:20 -04:00
parent 5c7bb9e7d7
commit d7dd256d38
8 changed files with 9 additions and 11 deletions

View File

@@ -7,8 +7,7 @@
#include "CToken.hpp"
namespace urde {
const CCollisionPrimitive::Type CCollidableOBBTreeGroup::sType(CCollidableOBBTreeGroup::SetStaticTableIndex,
"CCollidableOBBTreeGroup");
constexpr CCollisionPrimitive::Type sType(CCollidableOBBTreeGroup::SetStaticTableIndex, "CCollidableOBBTreeGroup");
u32 CCollidableOBBTreeGroup::sTableIndex = -1;
CCollidableOBBTreeGroupContainer::CCollidableOBBTreeGroupContainer(CInputStream& in) {