mirror of https://github.com/libAthena/athena.git
removed implementation-reliant use of emplace_back
This commit is contained in:
parent
4eae909848
commit
a999744ab6
|
@ -527,7 +527,7 @@ public:
|
||||||
vector.reserve(count);
|
vector.reserve(count);
|
||||||
enterSubVector(name);
|
enterSubVector(name);
|
||||||
for (size_t i=0 ; i<count ; ++i)
|
for (size_t i=0 ; i<count ; ++i)
|
||||||
vector.emplace_back(readVal<T>(name));
|
vector.push_back(readVal<T>(name));
|
||||||
leaveSubVector();
|
leaveSubVector();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -939,7 +939,7 @@ public:
|
||||||
vector.clear();
|
vector.clear();
|
||||||
vector.reserve(count);
|
vector.reserve(count);
|
||||||
for (size_t i=0 ; i<count ; ++i)
|
for (size_t i=0 ; i<count ; ++i)
|
||||||
vector.emplace_back(readVal<T>());
|
vector.push_back(readVal<T>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @brief Performs automatic std::vector enumeration reads using numeric type T
|
/** @brief Performs automatic std::vector enumeration reads using numeric type T
|
||||||
|
@ -959,7 +959,7 @@ public:
|
||||||
vector.clear();
|
vector.clear();
|
||||||
vector.reserve(count);
|
vector.reserve(count);
|
||||||
for (size_t i=0 ; i<count ; ++i)
|
for (size_t i=0 ; i<count ; ++i)
|
||||||
vector.emplace_back(readValLittle<T>());
|
vector.push_back(readValLittle<T>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @brief Performs automatic std::vector enumeration reads using numeric type T
|
/** @brief Performs automatic std::vector enumeration reads using numeric type T
|
||||||
|
@ -979,7 +979,7 @@ public:
|
||||||
vector.clear();
|
vector.clear();
|
||||||
vector.reserve(count);
|
vector.reserve(count);
|
||||||
for (size_t i=0 ; i<count ; ++i)
|
for (size_t i=0 ; i<count ; ++i)
|
||||||
vector.emplace_back(readValBig<T>());
|
vector.push_back(readValBig<T>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @brief Performs automatic std::vector enumeration reads using non-numeric type T
|
/** @brief Performs automatic std::vector enumeration reads using non-numeric type T
|
||||||
|
|
Loading…
Reference in New Issue