From 496b8d54f05de925f7827785544acbaec35fa356 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 25 Mar 2023 15:11:34 +0300 Subject: fixes #3454 (Telegram: crash fix) --- libs/libjson/src/JSONNode.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs/libjson/src/JSONNode.h') diff --git a/libs/libjson/src/JSONNode.h b/libs/libjson/src/JSONNode.h index dc69e965ab..a145810854 100644 --- a/libs/libjson/src/JSONNode.h +++ b/libs/libjson/src/JSONNode.h @@ -89,10 +89,11 @@ class LIBJSON_EXPORT JSONNode public: explicit JSONNode(char mytype = JSON_NODE); - #define DECLARE_CTOR(type) JSONNode(const json_string & name_t, type value_t) + #define DECLARE_CTOR(type) JSONNode(const json_string &name_t, type value_t) DECLARE_FOR_ALL_TYPES(DECLARE_CTOR) + JSONNode(const json_string &name_t, const wchar_t *value_t); - JSONNode(const JSONNode & orig); + JSONNode(const JSONNode &orig); ~JSONNode(void); static JSONNode parse(const json_char *str); -- cgit v1.2.3