mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 10:05:32 +00:00
AK: Fix argument type for JsonArray::at and JsonArray::operator[]
This commit is contained in:
parent
ff8c664931
commit
f57c57966b
|
@ -51,8 +51,8 @@ public:
|
|||
int size() const { return m_values.size(); }
|
||||
bool is_empty() const { return m_values.is_empty(); }
|
||||
|
||||
const JsonValue& at(int index) const { return m_values.at(index); }
|
||||
const JsonValue& operator[](int index) const { return at(index); }
|
||||
const JsonValue& at(size_t index) const { return m_values.at(index); }
|
||||
const JsonValue& operator[](size_t index) const { return at(index); }
|
||||
|
||||
void clear() { m_values.clear(); }
|
||||
void append(JsonValue value) { m_values.append(move(value)); }
|
||||
|
|
Loading…
Reference in a new issue