Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > b5d29fbde8c9376f8492af56f30ffe94 > files > 5

rapidjson-1.1.0-6.mga9.src.rpm

From 84cf6a9b16a286b19725fef9d1c2684f70efec4b Mon Sep 17 00:00:00 2001
From: Gustav <sir.gustav.the.coder@gmail.com>
Date: Mon, 18 May 2020 14:06:39 +0200
Subject: [PATCH] Fixes issue #1718

---
 include/rapidjson/writer.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/rapidjson/writer.h b/include/rapidjson/writer.h
index 94f22dd..452f6e9 100644
--- a/include/rapidjson/writer.h
+++ b/include/rapidjson/writer.h
@@ -251,6 +251,8 @@ public:
     */
     bool RawValue(const Ch* json, size_t length, Type type) { Prefix(type); return EndValue(WriteRawValue(json, length)); }
 
+    static const size_t kDefaultLevelDepth = 32;
+
 protected:
     //! Information for each nested level
     struct Level {
@@ -259,8 +261,6 @@ protected:
         bool inArray;       //!< true if in array, otherwise in object
     };
 
-    static const size_t kDefaultLevelDepth = 32;
-
     bool WriteNull()  {
         PutReserve(*os_, 4);
         PutUnsafe(*os_, 'n'); PutUnsafe(*os_, 'u'); PutUnsafe(*os_, 'l'); PutUnsafe(*os_, 'l'); return true;
-- 
2.36.1