aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/binsaver
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/binsaver
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/binsaver')
-rw-r--r--library/cpp/binsaver/bin_saver.h30
-rw-r--r--library/cpp/binsaver/class_factory.h2
-rw-r--r--library/cpp/binsaver/ut/binsaver_ut.cpp12
3 files changed, 22 insertions, 22 deletions
diff --git a/library/cpp/binsaver/bin_saver.h b/library/cpp/binsaver/bin_saver.h
index 412424889f..5e6db69bf7 100644
--- a/library/cpp/binsaver/bin_saver.h
+++ b/library/cpp/binsaver/bin_saver.h
@@ -247,7 +247,7 @@ private:
DataChunkStr(data, sizeof(char));
}
void DataChunkStroka(TString& data) {
- DataChunkStr(data, sizeof(TString::char_type));
+ DataChunkStr(data, sizeof(TString::char_type));
}
void DataChunkWtroka(TUtf16String& data) {
DataChunkStr(data, sizeof(wchar16));
@@ -281,7 +281,7 @@ private:
typedef THashMap<ui64, TPtr<IObjectBase>> CObjectsHash;
TAutoPtr<CObjectsHash> Objects;
- TVector<IObjectBase*> ObjectQueue;
+ TVector<IObjectBase*> ObjectQueue;
public:
bool IsReading() {
@@ -390,7 +390,7 @@ public:
Add(2, &nSize);
}
int i = 1;
- for (typename TList<T1>::iterator k = data.begin(); k != data.end(); ++k, ++i)
+ for (typename TList<T1>::iterator k = data.begin(); k != data.end(); ++k, ++i)
Add(i + 2, &(*k));
return 0;
}
@@ -542,7 +542,7 @@ public:
template <class T>
static bool HasNonTrivialSerializer(...) {
- return sizeof(std::declval<IBinSaver*>()->Add(0, std::declval<T*>())) != 1;
+ return sizeof(std::declval<IBinSaver*>()->Add(0, std::declval<T*>())) != 1;
}
public:
@@ -625,19 +625,19 @@ struct TRegisterSaveLoadType {
return 0; \
}
-#define SAVELOAD_OVERRIDE_WITHOUT_BASE(...) \
- int operator&(IBinSaver& f) override { \
- f.AddMulti(__VA_ARGS__); \
- return 0; \
- }
-
-#define SAVELOAD_OVERRIDE(base, ...) \
- int operator&(IBinSaver& f) override { \
- base::operator&(f); \
- f.AddMulti(__VA_ARGS__); \
- return 0; \
+#define SAVELOAD_OVERRIDE_WITHOUT_BASE(...) \
+ int operator&(IBinSaver& f) override { \
+ f.AddMulti(__VA_ARGS__); \
+ return 0; \
}
+#define SAVELOAD_OVERRIDE(base, ...) \
+ int operator&(IBinSaver& f) override { \
+ base::operator&(f); \
+ f.AddMulti(__VA_ARGS__); \
+ return 0; \
+ }
+
#define SAVELOAD_BASE(...) \
int operator&(IBinSaver& f) { \
TBase::operator&(f); \
diff --git a/library/cpp/binsaver/class_factory.h b/library/cpp/binsaver/class_factory.h
index e83512331b..5e9958a3d8 100644
--- a/library/cpp/binsaver/class_factory.h
+++ b/library/cpp/binsaver/class_factory.h
@@ -2,7 +2,7 @@
#include <typeinfo>
#include <util/generic/hash.h>
-#include <util/generic/vector.h>
+#include <util/generic/vector.h>
#include <util/ysafeptr.h>
diff --git a/library/cpp/binsaver/ut/binsaver_ut.cpp b/library/cpp/binsaver/ut/binsaver_ut.cpp
index 37eba5406f..b8cffcf5e3 100644
--- a/library/cpp/binsaver/ut/binsaver_ut.cpp
+++ b/library/cpp/binsaver/ut/binsaver_ut.cpp
@@ -13,30 +13,30 @@ struct TBinarySerializable {
struct TNonBinarySerializable {
ui32 Data = 0;
- TString StrData;
+ TString StrData;
};
struct TCustomSerializer {
ui32 Data = 0;
- TString StrData;
+ TString StrData;
SAVELOAD(StrData, Data);
};
struct TCustomOuterSerializer {
ui32 Data = 0;
- TString StrData;
+ TString StrData;
};
void operator&(TCustomOuterSerializer& s, IBinSaver& f);
struct TCustomOuterSerializerTmpl {
ui32 Data = 0;
- TString StrData;
+ TString StrData;
};
struct TCustomOuterSerializerTmplDerived: public TCustomOuterSerializerTmpl {
ui32 Data = 0;
- TString StrData;
+ TString StrData;
};
struct TMoveOnlyType {
@@ -52,7 +52,7 @@ struct TMoveOnlyType {
struct TTypeWithArray {
ui32 Data = 1;
- TString Array[2][2]{{"test", "data"}, {"and", "more"}};
+ TString Array[2][2]{{"test", "data"}, {"and", "more"}};
SAVELOAD(Data, Array);
bool operator==(const TTypeWithArray& obj) const {