Browse Source

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

noxandry 3 years ago
parent
commit
8ef6fd8a20
3 changed files with 10 additions and 10 deletions
  1. 1 1
      contrib/libs/ya.make
  2. 6 6
      library/cpp/binsaver/bin_saver.h
  3. 3 3
      library/cpp/binsaver/ut/binsaver_ut.cpp

+ 1 - 1
contrib/libs/ya.make

@@ -327,7 +327,7 @@ RECURSE(
     tcmalloc
     tcmalloc/dynamic
     tensorboard
-    termbox
+    termbox 
     tf
     tf/samples
     tf/tensorflow

+ 6 - 6
library/cpp/binsaver/bin_saver.h

@@ -183,7 +183,7 @@ private:
                 Add(2, &pos->second);
         }
     }
-
+ 
     template <class T>
     void DoAnySet(T& data) {
         if (IsReading()) {
@@ -199,13 +199,13 @@ private:
             TStoredSize nSize = data.size();
             CheckOverflow(nSize, data.size());
             Add(2, &nSize);
-            for (const auto& elem : data) {
-                auto member = elem;
+            for (const auto& elem : data) { 
+                auto member = elem; 
                 Add(1, &member);
             }
         }
     }
-
+ 
     // 2D array
     template <class T>
     void Do2DArray(TArray2D<T>& a) {
@@ -361,8 +361,8 @@ public:
     template <class K, class L, class A>
     int Add(const chunk_id, TSet<K, L, A>* pSet) {
         DoAnySet(*pSet);
-        return 0;
-    }
+        return 0; 
+    } 
     template <class T1, class T2, class T3, class T4>
     int Add(const chunk_id, THashSet<T1, T2, T3, T4>* pHash) {
         DoAnySet(*pHash);

+ 3 - 3
library/cpp/binsaver/ut/binsaver_ut.cpp

@@ -5,7 +5,7 @@
 #include <library/cpp/testing/unittest/registar.h>
 
 #include <util/stream/buffer.h>
-#include <util/generic/map.h>
+#include <util/generic/map.h> 
 
 struct TBinarySerializable {
     ui32 Data = 0;
@@ -90,11 +90,11 @@ Y_UNIT_TEST(TestMoveOnlyType) {
 Y_UNIT_TEST(TestVectorStrok) {
     TestBinSaverSerialization(TVector<TString>{"A", "B", "C"});
 }
-
+ 
 Y_UNIT_TEST(TestCArray) {
     TestBinSaverSerialization(TTypeWithArray());
 }
-
+ 
 Y_UNIT_TEST(TestSets) {
     TestBinSaverSerialization(THashSet<TString>{"A", "B", "C"});
     TestBinSaverSerialization(TSet<TString>{"A", "B", "C"});