diff options
author | noxandry <noxandry@yandex-team.ru> | 2022-02-10 16:47:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:15 +0300 |
commit | 8ef6fd8a206d88560f2964726bcdd8aae5af0a39 (patch) | |
tree | e680ef69f3a6f62a7e5ea627f9e644c742424254 /library/cpp/binsaver/bin_saver.h | |
parent | ad7bb675fd1ed4cdca14f137fb3429ad297985cb (diff) | |
download | ydb-8ef6fd8a206d88560f2964726bcdd8aae5af0a39.tar.gz |
Restoring authorship annotation for <noxandry@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/binsaver/bin_saver.h')
-rw-r--r-- | library/cpp/binsaver/bin_saver.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/binsaver/bin_saver.h b/library/cpp/binsaver/bin_saver.h index 412424889f..4491a12d48 100644 --- a/library/cpp/binsaver/bin_saver.h +++ b/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); |