From 210550d4b3937d24698ea052ba51b605fab3cfcd Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 4 Aug 2019 10:05:02 +0200 Subject: [PATCH] JsonArray: Expose the value vector to the outside for convenience Sometimes it's easier to just work with a const Vector&, so give clients the option of doing that. --- AK/JsonArray.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AK/JsonArray.h b/AK/JsonArray.h index 0a1fc4eb8d..9e318e47cb 100644 --- a/AK/JsonArray.h +++ b/AK/JsonArray.h @@ -29,6 +29,8 @@ public: callback(value); } + const Vector& values() const { return m_values; } + private: Vector m_values; };