[ox/model] Remove another const_cast

This commit is contained in:
Gary Talent 2023-12-09 00:50:14 -06:00
parent ade6af8698
commit 8804819e17

View File

@ -144,8 +144,6 @@ class ModelValue {
constexpr ModelValue(const ModelValue &other) noexcept; constexpr ModelValue(const ModelValue &other) noexcept;
constexpr ModelValue(ModelValue &other) noexcept;
constexpr ModelValue(ModelValue &&other) noexcept; constexpr ModelValue(ModelValue &&other) noexcept;
template<typename T> template<typename T>
@ -814,9 +812,6 @@ constexpr ModelValue::ModelValue(const ModelValue &other) noexcept {
} }
} }
constexpr ModelValue::ModelValue(ModelValue &other) noexcept: ModelValue(const_cast<const ModelValue&>(other)) {
}
constexpr ModelValue::ModelValue(ModelValue &&other) noexcept { constexpr ModelValue::ModelValue(ModelValue &&other) noexcept {
m_type = other.m_type; m_type = other.m_type;
switch (m_type) { switch (m_type) {