summaryrefslogtreecommitdiff
path: root/DevTools
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-07 22:09:33 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-07 22:09:33 +0200
commitc258c9a4b2348b85506bec201b97aeec1e4ac6e6 (patch)
treefd6e77568cb30e429d8b51f31aa7ef21f603fd26 /DevTools
parent351c354680a8c9d8b1efa01fd9bed53393d8ab73 (diff)
downloadserenity-c258c9a4b2348b85506bec201b97aeec1e4ac6e6.zip
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(). :^)
Diffstat (limited to 'DevTools')
-rw-r--r--DevTools/FormCompiler/main.cpp2
1 files changed, 1 insertions, 1 deletions
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<StringBuilder>();
dbg() << " " << name << "->set_" << property_name << "(" << value << ");";
});