diff options
author | Andrey Fomichev <andrey.fomichev@gmail.com> | 2022-02-10 16:49:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:15 +0300 |
commit | 1c61afbf3db63940d05e6fefa3104b03457788a1 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/uri | |
parent | e542cc14db4240643a06bb0dde87ecf361f101ab (diff) | |
download | ydb-1c61afbf3db63940d05e6fefa3104b03457788a1.tar.gz |
Restoring authorship annotation for Andrey Fomichev <andrey.fomichev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/uri')
-rw-r--r-- | library/cpp/uri/common.h | 6 | ||||
-rw-r--r-- | library/cpp/uri/uri.cpp | 2 | ||||
-rw-r--r-- | library/cpp/uri/uri.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/uri/common.h b/library/cpp/uri/common.h index 38bd460556..8025357763 100644 --- a/library/cpp/uri/common.h +++ b/library/cpp/uri/common.h @@ -501,11 +501,11 @@ Y_DECLARE_OUT_SPEC(inline, NUri::TScheme::EKind, out, t) { Y_DECLARE_OUT_SPEC(inline, NUri::TState::EParsed, out, t) { out << NUri::ParsedStateToString(t); } - + static inline ui16 DefaultPort(NUri::TScheme::EKind scheme) { return NUri::TSchemeInfo::GetDefaultPort(scheme); -} - +} + static inline NUri::TScheme::EKind SchemeKind(const TStringBuf& scheme) { return NUri::TSchemeInfo::GetKind(scheme); } diff --git a/library/cpp/uri/uri.cpp b/library/cpp/uri/uri.cpp index 464c7f54f0..56a9a4e5ef 100644 --- a/library/cpp/uri/uri.cpp +++ b/library/cpp/uri/uri.cpp @@ -351,7 +351,7 @@ namespace NUri { IOutputStream& TUri::PrintImpl(IOutputStream& out, int flags) const { TStringBuf v; - + const int wantFlags = flags; // save the original flags &= FieldsSet; // can't print what we don't have if (flags & FlagHostAscii) diff --git a/library/cpp/uri/uri.h b/library/cpp/uri/uri.h index 0b57246a1e..3b6c19fe4a 100644 --- a/library/cpp/uri/uri.h +++ b/library/cpp/uri/uri.h @@ -401,7 +401,7 @@ namespace NUri { const size_t printSize = PrintSize(flags) + 1; return printSize > size ? nullptr : PrintImpl(str, size, flags); } - + char* Serialize(int flags = FlagUrlFields) const { flags = PrintFlags(flags); const size_t size = PrintSize(flags) + 1; |