Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarParametricFunction.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-02-20 09:49:42 +1100
committerGitHub <noreply@github.com>2024-02-20 09:49:42 +1100
commitaa987a217779e71f97ee4c9cce531aec1c861bf8 (patch)
treee51fcce110306d93bf93870f13a5ff7d6b575427 /source/core/StarParametricFunction.hpp
parentd0099a6d790b66f21e4e266e569d64fb82fb0a81 (diff)
parent1c89042016c739815b2d70bcbef4673eef6b63e0 (diff)
Merge branch 'main' into small-fixes
Diffstat (limited to 'source/core/StarParametricFunction.hpp')
-rw-r--r--source/core/StarParametricFunction.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/core/StarParametricFunction.hpp b/source/core/StarParametricFunction.hpp
index 8221c05..64bede2 100644
--- a/source/core/StarParametricFunction.hpp
+++ b/source/core/StarParametricFunction.hpp
@@ -125,8 +125,8 @@ ParametricTable<IndexType, ValueType>::ParametricTable(PairContainer indexValueP
});
for (auto const& pair : indexValuePairs) {
- m_indexes.push_back(move(std::get<0>(pair)));
- m_values.push_back(move(std::get<1>(pair)));
+ m_indexes.push_back(std::move(std::get<0>(pair)));
+ m_values.push_back(std::move(std::get<1>(pair)));
}
for (size_t i = 0; i < size() - 1; ++i) {
@@ -138,8 +138,8 @@ ParametricTable<IndexType, ValueType>::ParametricTable(PairContainer indexValueP
template <typename IndexType, typename ValueType>
size_t ParametricTable<IndexType, ValueType>::addPoint(IndexType index, ValueType value) {
size_t insertLocation = std::distance(m_indexes.begin(), std::upper_bound(m_indexes.begin(), m_indexes.end(), index));
- m_indexes.insert(m_indexes.begin() + insertLocation, move(index));
- m_values.insert(m_values.begin() + insertLocation, move(value));
+ m_indexes.insert(m_indexes.begin() + insertLocation, std::move(index));
+ m_values.insert(m_values.begin() + insertLocation, std::move(value));
return insertLocation;
}