1
Fork 0
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:
Andreas Kling 2019-08-04 10:05:02 +02:00
parent 675aa550a4
commit 210550d4b3

View file

@ -29,6 +29,8 @@ public:
callback(value);
}
const Vector<JsonValue>& values() const { return m_values; }
private:
Vector<JsonValue> m_values;
};