mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 22:27:41 +00:00
Runtime: Add more usages of explicit
Prevents error-prone implicit conversions where applicable. This targets the regular RuntimeCommon target this time around.
This commit is contained in:
@@ -27,7 +27,7 @@ public:
|
||||
const u16* m_ptr;
|
||||
|
||||
public:
|
||||
TriListReference(const u16* ptr) : m_ptr(ptr) {}
|
||||
explicit TriListReference(const u16* ptr) : m_ptr(ptr) {}
|
||||
u16 GetAt(int idx) const { return m_ptr[idx + 1]; }
|
||||
u16 GetSize() const { return m_ptr[0]; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user