summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-11-24 15:03:27 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2020-12-03 08:45:24 +0100
commit7fc2fe5c612f95b9624f49b5fdea2d3c8c94caf1 (patch)
tree66c04c37a6eff2d6abae5886bff4edfd10dcbfb7 /include/tools
parent1d3d958e0089429e05265cfd13dc540fce5887d1 (diff)
jsdialog: fix arrays in JsonWriter output
Change-Id: I5638b1b02afcdd57b16b60d83d3d15da45866060 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107066 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/json_writer.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tools/json_writer.hxx b/include/tools/json_writer.hxx
index 10e1a3a7aafc..440fedccf45e 100644
--- a/include/tools/json_writer.hxx
+++ b/include/tools/json_writer.hxx
@@ -64,6 +64,8 @@ public:
void put(const char* pPropName, bool);
void put(const char* pPropName, double);
+ void putSimpleValue(const OUString& rPropValue);
+
/// This assumes that this data belongs at this point in the stream, and is valid, and properly encoded
void putRaw(const rtl::OStringBuffer&);
@@ -82,6 +84,7 @@ private:
void endStruct();
void addCommaBeforeField();
void reallocBuffer(int noMoreBytesRequired);
+ void writeEscapedOUString(const OUString& rPropVal);
// this part inline to speed up the fast path
inline void ensureSpace(int noMoreBytesRequired)