mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 19:04:56 +00:00
Merge pull request #43 from lioncash/spec-const
RetroDataSpec: Make member functions const where applicable
This commit is contained in:
@@ -208,7 +208,7 @@ public:
|
||||
m_cur = m_dl.get();
|
||||
}
|
||||
|
||||
operator bool() { return ((m_cur - m_dl.get()) < intptr_t(m_dlSize)) && *m_cur; }
|
||||
explicit operator bool() const { return ((m_cur - m_dl.get()) < intptr_t(m_dlSize)) && *m_cur; }
|
||||
|
||||
GX::Primitive readPrimitive() { return GX::Primitive(*m_cur++ & 0xf8); }
|
||||
|
||||
|
||||
@@ -396,7 +396,7 @@ public:
|
||||
++m_idx;
|
||||
return *this;
|
||||
}
|
||||
bool operator*() { return m_bmp.getBit(m_idx); }
|
||||
bool operator*() const { return m_bmp.getBit(m_idx); }
|
||||
bool operator!=(const Iterator& other) const { return m_idx != other.m_idx; }
|
||||
};
|
||||
Iterator begin() const { return Iterator(*this, 0); }
|
||||
|
||||
Reference in New Issue
Block a user