mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
JsonArray: Expose the value vector to the outside for convenience
Sometimes it's easier to just work with a const Vector<JsonValue>&, so give clients the option of doing that.
This commit is contained in:
parent
675aa550a4
commit
210550d4b3
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ public:
|
|||
callback(value);
|
||||
}
|
||||
|
||||
const Vector<JsonValue>& values() const { return m_values; }
|
||||
|
||||
private:
|
||||
Vector<JsonValue> m_values;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue