mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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
Notes:
sideshowbarker
2024-07-19 12:54:28 +09:00
Author: https://github.com/awesomekling
Commit: 210550d4b3
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ public:
|
||||||
callback(value);
|
callback(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const Vector<JsonValue>& values() const { return m_values; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Vector<JsonValue> m_values;
|
Vector<JsonValue> m_values;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue