diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/deprecated/accessors | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/deprecated/accessors')
-rw-r--r-- | library/cpp/deprecated/accessors/accessors.h | 2 | ||||
-rw-r--r-- | library/cpp/deprecated/accessors/accessors_ut.cpp | 18 | ||||
-rw-r--r-- | library/cpp/deprecated/accessors/memory_traits.h | 6 |
3 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/deprecated/accessors/accessors.h b/library/cpp/deprecated/accessors/accessors.h index 6d4b1da3ad..744dcb15d5 100644 --- a/library/cpp/deprecated/accessors/accessors.h +++ b/library/cpp/deprecated/accessors/accessors.h @@ -8,7 +8,7 @@ namespace NAccessors { * * i.e. this will work: * - * TString t; + * TString t; * const char* beg = NAccessors::Begin(t); // t.begin() * const char* end = NAccessors::End(t); // t.end() * size_t sz = NAccessors::Size(t); // t.size() diff --git a/library/cpp/deprecated/accessors/accessors_ut.cpp b/library/cpp/deprecated/accessors/accessors_ut.cpp index a9bdc9fcc4..2008c9edb9 100644 --- a/library/cpp/deprecated/accessors/accessors_ut.cpp +++ b/library/cpp/deprecated/accessors/accessors_ut.cpp @@ -58,27 +58,27 @@ private: TestRead(sbuf, "TStringBuf"); - TUtf16String wtr; + TUtf16String wtr; wtr.resize(10, 1024); - TestRead(wtr, "TUtf16String"); + TestRead(wtr, "TUtf16String"); TBuffer buf; buf.Resize(30); TestRead(buf, "TBuffer"); - TVector<ui64> vec(10, 100); + TVector<ui64> vec(10, 100); - TestRead(vec, "TVector<ui64>"); + TestRead(vec, "TVector<ui64>"); - TestWrite<TString>("TString"); - TestWrite<TVector<char>>("TVector<char>"); + TestWrite<TString>("TString"); + TestWrite<TVector<char>>("TVector<char>"); TestWrite<TBuffer>("TBuffer"); - TestWrite<TVector<ui64>>("TVector<ui64>"); - TestWrite<TUtf16String>("TUtf16String"); + TestWrite<TVector<ui64>>("TVector<ui64>"); + TestWrite<TUtf16String>("TUtf16String"); - std::array<TString, 10> sarr; + std::array<TString, 10> sarr; NAccessors::Init(sarr); NAccessors::Clear(sarr); diff --git a/library/cpp/deprecated/accessors/memory_traits.h b/library/cpp/deprecated/accessors/memory_traits.h index aa837705d3..1d19b9de33 100644 --- a/library/cpp/deprecated/accessors/memory_traits.h +++ b/library/cpp/deprecated/accessors/memory_traits.h @@ -5,7 +5,7 @@ #include <util/memory/tempbuf.h> #include <util/generic/buffer.h> #include <util/generic/strbuf.h> -#include <util/generic/string.h> +#include <util/generic/string.h> #include <util/generic/vector.h> #include <util/generic/typetraits.h> @@ -108,7 +108,7 @@ struct TMemoryTraits<std::vector<T, TAlloc>>: public TElementDependentMemoryTrai }; template <typename T, typename TAlloc> -struct TMemoryTraits<TVector<T, TAlloc>>: public TMemoryTraits<std::vector<T, TAlloc>> { +struct TMemoryTraits<TVector<T, TAlloc>>: public TMemoryTraits<std::vector<T, TAlloc>> { }; template <typename T> @@ -126,7 +126,7 @@ struct TMemoryTraits<std::basic_string<T, TCharTraits, TAlloc>>: public TElement }; template <> -struct TMemoryTraits<TString>: public TElementDependentMemoryTraits<char> { +struct TMemoryTraits<TString>: public TElementDependentMemoryTraits<char> { enum { OwnsMemory = true }; |