mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Fix argument type for JsonArray::at and JsonArray::operator[]
This commit is contained in:
parent
ff8c664931
commit
f57c57966b
Notes:
sideshowbarker
2024-07-18 19:04:33 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/f57c57966bb Pull-request: https://github.com/SerenityOS/serenity/pull/6639 Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 2 deletions
|
@ -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