Util: Rename Array m_values -> m_elements

This commit is contained in:
Riyyi
2022-07-12 11:06:46 +02:00
parent aa283f8c75
commit 5835c63bda
4 changed files with 18 additions and 18 deletions
+5 -5
View File
@@ -9,18 +9,18 @@
namespace Json {
void Array::emplace_back(Value value)
void Array::emplace_back(Value element)
{
m_values.emplace_back(std::move(value));
m_elements.emplace_back(std::move(element));
}
Value& Array::operator[](size_t index)
{
if (index + 1 > m_values.size()) {
m_values.resize(index + 1);
if (index + 1 > m_elements.size()) {
m_elements.resize(index + 1);
}
return m_values[index];
return m_elements[index];
}
} // namespace Json