[ox/model] Removes some unnecessary type conversions
This commit is contained in:
parent
034cb97a42
commit
4e70b459f6
4
deps/ox/src/ox/model/types.hpp
vendored
4
deps/ox/src/ox/model/types.hpp
vendored
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user