diff options
author | quick <quick@yandex-team.ru> | 2022-02-10 16:50:34 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:34 +0300 |
commit | 2dd8fdb1ffb3a41a06df16a87e9f25f9daf31973 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 | |
parent | aa9a314f252b3cd271b4fc5ba7f042ace11ec744 (diff) | |
download | ydb-2dd8fdb1ffb3a41a06df16a87e9f25f9daf31973.tar.gz |
Restoring authorship annotation for <quick@yandex-team.ru>. Commit 2 of 2.
-rw-r--r-- | library/cpp/messagebus/rain_check/core/task.cpp | 8 | ||||
-rw-r--r-- | library/cpp/messagebus/rain_check/core/task.h | 2 | ||||
-rw-r--r-- | library/cpp/uri/parse.cpp | 2 | ||||
-rw-r--r-- | library/cpp/uri/parse.h | 4 | ||||
-rw-r--r-- | library/cpp/uri/uri.cpp | 2 | ||||
-rw-r--r-- | library/cpp/uri/uri_ut.cpp | 10 | ||||
-rw-r--r-- | util/folder/filelist.cpp | 2 |
7 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/messagebus/rain_check/core/task.cpp b/library/cpp/messagebus/rain_check/core/task.cpp index d284e1192d..a098437d53 100644 --- a/library/cpp/messagebus/rain_check/core/task.cpp +++ b/library/cpp/messagebus/rain_check/core/task.cpp @@ -203,10 +203,10 @@ TTaskRunnerBase* TTaskRunnerBase::CurrentTask() { return ThreadCurrentTask; } -ITaskBase* TTaskRunnerBase::CurrentTaskImpl() { - return CurrentTask()->GetImplBase(); -} - +ITaskBase* TTaskRunnerBase::CurrentTaskImpl() { + return CurrentTask()->GetImplBase(); +} + TString TTaskRunnerBase::GetStatusSingleLine() { return TypeName(*Impl); } diff --git a/library/cpp/messagebus/rain_check/core/task.h b/library/cpp/messagebus/rain_check/core/task.h index 61d1501a8e..7d8778bcda 100644 --- a/library/cpp/messagebus/rain_check/core/task.h +++ b/library/cpp/messagebus/rain_check/core/task.h @@ -156,7 +156,7 @@ namespace NRainCheck { bool IsRunningInThisThread() const; void AssertInThisThread() const; static TTaskRunnerBase* CurrentTask(); - static ITaskBase* CurrentTaskImpl(); + static ITaskBase* CurrentTaskImpl(); TString GetStatusSingleLine(); diff --git a/library/cpp/uri/parse.cpp b/library/cpp/uri/parse.cpp index 739ccbb3d1..1db4e008c4 100644 --- a/library/cpp/uri/parse.cpp +++ b/library/cpp/uri/parse.cpp @@ -146,7 +146,7 @@ namespace NUri { const TSection& scheme = Sections[TField::FieldScheme]; Scheme = scheme.IsSet() ? TSchemeInfo::GetKind(scheme.Get()) : TScheme::SchemeEmpty; const TSchemeInfo& schemeInfo = TSchemeInfo::Get(Scheme); - + if (IsRootless()) { // opaque case happens if (schemeInfo.FldReq & TField::FlagHost) diff --git a/library/cpp/uri/parse.h b/library/cpp/uri/parse.h index 8258e4e743..ca2358e572 100644 --- a/library/cpp/uri/parse.h +++ b/library/cpp/uri/parse.h @@ -352,8 +352,8 @@ namespace NUri { if (Sections[fld1].IsSet() && Sections[fld2].IsSet() && Sections[fld1].Beg == Sections[fld2].Beg) { Sections[fld1].Reset(); } - } - + } + bool doParse(const char* str_beg, size_t length); TState::EParsed ParseImpl(); }; diff --git a/library/cpp/uri/uri.cpp b/library/cpp/uri/uri.cpp index 624b5c2760..56a9a4e5ef 100644 --- a/library/cpp/uri/uri.cpp +++ b/library/cpp/uri/uri.cpp @@ -540,7 +540,7 @@ namespace NUri { upCount++; continue; } - } + } } if (upCount) { diff --git a/library/cpp/uri/uri_ut.cpp b/library/cpp/uri/uri_ut.cpp index eff55cee5b..2ebd83fc93 100644 --- a/library/cpp/uri/uri_ut.cpp +++ b/library/cpp/uri/uri_ut.cpp @@ -175,7 +175,7 @@ namespace NUri { "_", "yandex.ru:443", nullptr}; - + static TState::EParsed answersForCheckHost[] = { TState::ParsedOK, TState::ParsedOK, @@ -186,14 +186,14 @@ namespace NUri { TState::ParsedBadHost, TState::ParsedBadHost, }; - + Y_UNIT_TEST(test_httpURLCheckHost) { for (size_t index = 0; hostsForCheckHost[index]; ++index) { TState::EParsed state = TUri::CheckHost(hostsForCheckHost[index]); UNIT_ASSERT_VALUES_EQUAL(state, answersForCheckHost[index]); } } - + Y_UNIT_TEST(test_httpURLSet) { // set port { @@ -203,7 +203,7 @@ namespace NUri { UNIT_ASSERT_VALUES_EQUAL(parsedUrl.GetPort(), 8080); UNIT_ASSERT_VALUES_EQUAL(parsedUrl.PrintS(), "http://www.host.com:8080/script.cgi?param1=value1¶m2=value2"); } - + // clear port { TUri parsedUrl; @@ -212,7 +212,7 @@ namespace NUri { UNIT_ASSERT_VALUES_EQUAL(parsedUrl.GetPort(), 80); UNIT_ASSERT_VALUES_EQUAL(parsedUrl.PrintS(), "http://www.host.com/script.cgi?param1=value1¶m2=value2"); } - + // change scheme with default port { TUri parsedUrl; diff --git a/util/folder/filelist.cpp b/util/folder/filelist.cpp index bd3196fbe1..b21fcdbf20 100644 --- a/util/folder/filelist.cpp +++ b/util/folder/filelist.cpp @@ -30,7 +30,7 @@ void TFileEntitiesList::Fill(const TString& dirname, TStringBuf prefix, TStringB continue; } - if (((Mask & EM_FILES) && file->fts_info == FTS_F) || ((Mask & EM_DIRS) && file->fts_info == FTS_D) || ((Mask & EM_SLINKS) && file->fts_info == FTS_SL)) { + if (((Mask & EM_FILES) && file->fts_info == FTS_F) || ((Mask & EM_DIRS) && file->fts_info == FTS_D) || ((Mask & EM_SLINKS) && file->fts_info == FTS_SL)) { ++FileNamesSize; FileNames.Append(filename.data(), filename.size() + 1); } |