From c258c9a4b2348b85506bec201b97aeec1e4ac6e6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 7 Aug 2019 22:09:33 +0200 Subject: FormCompiler: Oops, need to use JsonValue::serialized() for properties When assigning properties, we were relying on the JSON serialization code to wrap strings in double-quotes ("). JsonValue::to_string() does not wrap string values, so what we want here is serialized(). :^) --- DevTools/FormCompiler/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'DevTools') diff --git a/DevTools/FormCompiler/main.cpp b/DevTools/FormCompiler/main.cpp index 2ffe14da1f..5e62bd149e 100644 --- a/DevTools/FormCompiler/main.cpp +++ b/DevTools/FormCompiler/main.cpp @@ -80,7 +80,7 @@ int main(int argc, char** argv) if (property_value.is_null()) value = "{}"; else - value = property_value.to_string(); + value = property_value.serialized(); dbg() << " " << name << "->set_" << property_name << "(" << value << ");"; }); -- cgit v1.2.3