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>2021-04-28 12:13:10 +0200
commitc6664cf13d41b6ed38c38ac811198b630c333f85 (patch)
tree816f35e77e59af50400a9f7d48476d15d2a54744 /include/tools
parent16f61b20ebda66f44170c99adc7a339956895f53 (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> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114767 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.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 c4b3004cf979..2e50670c5b26 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)