Browse Source

Restoring authorship annotation for <gennadiy@yandex-team.ru>. Commit 2 of 2.

gennadiy 3 years ago
parent
commit
ef1186a3ef
3 changed files with 14 additions and 14 deletions
  1. 2 2
      library/cpp/json/json_writer.h
  2. 2 2
      library/cpp/json/writer/json.cpp
  3. 10 10
      library/cpp/json/writer/json.h

+ 2 - 2
library/cpp/json/json_writer.h

@@ -183,12 +183,12 @@ namespace NJson {
         void Reset(const NJsonWriter::TBufState& from) {
             return Buf.Reset(from);
         }
- 
+
         void Reset(NJsonWriter::TBufState&& from) {
             return Buf.Reset(std::move(from));
         }
     };
- 
+
     void WriteJson(IOutputStream*, const TJsonValue*, bool formatOutput = false, bool sortkeys = false, bool validateUtf8 = true);
     TString WriteJson(const TJsonValue*, bool formatOutput = true, bool sortkeys = false, bool validateUtf8 = false);
     TString WriteJson(const TJsonValue&, bool formatOutput = true, bool sortkeys = false, bool validateUtf8 = false);

+ 2 - 2
library/cpp/json/writer/json.cpp

@@ -513,5 +513,5 @@ namespace NJsonWriter {
         NeedNewline = from.NeedNewline;
         Stack.swap(from.Stack);
     }
- 
-} 
+
+}

+ 10 - 10
library/cpp/json/writer/json.h

@@ -13,7 +13,7 @@ namespace NJson {
 }
 
 namespace NJsonWriter {
-    enum EJsonEntity : ui8 { 
+    enum EJsonEntity : ui8 {
         JE_OUTER_SPACE = 1,
         JE_LIST,
         JE_OBJECT,
@@ -33,12 +33,12 @@ namespace NJsonWriter {
     class TPairContext;
     class TAfterColonContext;
 
-    struct TBufState { 
-        bool NeedComma; 
-        bool NeedNewline; 
+    struct TBufState {
+        bool NeedComma;
+        bool NeedNewline;
         TVector<EJsonEntity> Stack;
-    }; 
- 
+    };
+
     class TBuf : TNonCopyable {
     public:
         TBuf(EHtmlEscapeMode mode = HEM_DONT_ESCAPE_HTML, IOutputStream* stream = nullptr);
@@ -120,10 +120,10 @@ namespace NJsonWriter {
         void UnsafeWriteRawBytes(const TStringBuf& s);
         void UnsafeWriteRawBytes(const char* c, size_t len);
 
-        TBufState State() const; 
-        void Reset(const TBufState& from); 
-        void Reset(TBufState&& from); 
- 
+        TBufState State() const;
+        void Reset(const TBufState& from);
+        void Reset(TBufState&& from);
+
     private:
         void BeginValue();
         void EndValue();