[ox/model] Remove another const_cast

(synced from 8804819e17)
This commit is contained in:
2023-12-09 00:50:14 -06:00
parent eac0ce666d
commit f27ec37161
-5
View File
@@ -144,8 +144,6 @@ class ModelValue {
constexpr ModelValue(const ModelValue &other) noexcept;
constexpr ModelValue(ModelValue &other) noexcept;
constexpr ModelValue(ModelValue &&other) noexcept;
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 {
m_type = other.m_type;
switch (m_type) {