[ox/model] Removes some unnecessary type conversions

This commit is contained in:
Gary Talent 2021-02-22 22:21:57 -06:00
parent 034cb97a42
commit 4e70b459f6

View File

@ -54,13 +54,13 @@ class SerStr {
if (m_tgt && sz) {
*m_tgt = new char[sz];
m_str = *m_tgt;
m_cap = sz;
m_cap = static_cast<int>(sz);
}
return m_str;
}
constexpr int len() noexcept {
return m_str ? ox_strlen(m_str) : 0;
return static_cast<int>(m_str ? ox_strlen(m_str) : 0);
}
constexpr int cap() noexcept {