aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/stack_array
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/containers/stack_array
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers/stack_array')
-rw-r--r--library/cpp/containers/stack_array/stack_array.h4
-rw-r--r--library/cpp/containers/stack_array/ut/tests_ut.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/containers/stack_array/stack_array.h b/library/cpp/containers/stack_array/stack_array.h
index 4be0a5171b..28e49bfc3c 100644
--- a/library/cpp/containers/stack_array/stack_array.h
+++ b/library/cpp/containers/stack_array/stack_array.h
@@ -23,10 +23,10 @@ namespace NStackArray {
* as those might be called from a loop, and then stack overflow is in the cards.
*/
template <class T>
- class TStackArray: public TArrayRef<T> {
+ class TStackArray: public TArrayRef<T> {
public:
inline TStackArray(void* data, size_t len)
- : TArrayRef<T>((T*)data, len)
+ : TArrayRef<T>((T*)data, len)
{
NRangeOps::InitializeRange(this->begin(), this->end());
}
diff --git a/library/cpp/containers/stack_array/ut/tests_ut.cpp b/library/cpp/containers/stack_array/ut/tests_ut.cpp
index 29476858e6..3e96384f0e 100644
--- a/library/cpp/containers/stack_array/ut/tests_ut.cpp
+++ b/library/cpp/containers/stack_array/ut/tests_ut.cpp
@@ -1,7 +1,7 @@
#include <library/cpp/containers/stack_array/stack_array.h>
#include <library/cpp/testing/unittest/registar.h>
-Y_UNIT_TEST_SUITE(TestStackArray) {
+Y_UNIT_TEST_SUITE(TestStackArray) {
using namespace NStackArray;
static inline void* FillWithTrash(void* d, size_t l) {
@@ -12,7 +12,7 @@ Y_UNIT_TEST_SUITE(TestStackArray) {
#define ALLOC(type, len) FillWithTrash(alloca(sizeof(type) * len), sizeof(type) * len), len
- Y_UNIT_TEST(Test1) {
+ Y_UNIT_TEST(Test1) {
TStackArray<ui32> s(ALLOC(ui32, 10));
UNIT_ASSERT_VALUES_EQUAL(s.size(), 10);
@@ -50,7 +50,7 @@ Y_UNIT_TEST_SUITE(TestStackArray) {
}
};
- Y_UNIT_TEST(Test2) {
+ Y_UNIT_TEST(Test2) {
{
TStackArray<TX1> s(ALLOC(TX1, 10));
@@ -78,7 +78,7 @@ Y_UNIT_TEST_SUITE(TestStackArray) {
}
};
- Y_UNIT_TEST(Test3) {
+ Y_UNIT_TEST(Test3) {
bool haveException = false;
try {