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
commit 210550d4b3
Notes: sideshowbarker 2024-07-19 12:54:28 +09:00

View file

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