[ox/model] Remove another const_cast
This commit is contained in:
parent
ade6af8698
commit
8804819e17
5
deps/ox/src/ox/model/modelvalue.hpp
vendored
5
deps/ox/src/ox/model/modelvalue.hpp
vendored
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user