diff options
| author | akhropov <[email protected]> | 2025-12-22 22:35:05 +0300 |
|---|---|---|
| committer | akhropov <[email protected]> | 2025-12-22 22:51:53 +0300 |
| commit | 398e95d8fcb3d37f8984f486dd80e2e84e8310e6 (patch) | |
| tree | 49fe9b205ada6f5d035d1a67f47edb993d0c16ba /library/cpp/protobuf | |
| parent | cddf41f2bf51c3adfa35f4e18e12ee63833c871e (diff) | |
Remove static from function definitions.
commit_hash:c5e17f1bff649a73283b9f5f637dca41588aa54f
Diffstat (limited to 'library/cpp/protobuf')
| -rw-r--r-- | library/cpp/protobuf/util/pb_io.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/protobuf/util/pb_io.h b/library/cpp/protobuf/util/pb_io.h index b4a0c654b36..f7167949adf 100644 --- a/library/cpp/protobuf/util/pb_io.h +++ b/library/cpp/protobuf/util/pb_io.h @@ -24,7 +24,7 @@ namespace NProtoBuf { void ParseFromBase64String(const TStringBuf dataBase64, Message& m, bool allowUneven = false); bool TryParseFromBase64String(const TStringBuf dataBase64, Message& m, bool allowUneven = false); template <typename T> - static T ParseFromBase64String(const TStringBuf& dataBase64, bool allowUneven = false) { + T ParseFromBase64String(const TStringBuf& dataBase64, bool allowUneven = false) { T m; ParseFromBase64String(dataBase64, m, allowUneven); return m; @@ -82,8 +82,8 @@ bool TryParseFromTextFormat(IInputStream& in, NProtoBuf::Message& m, // @see `ParseFromTextFormat` template <typename T> -static T ParseFromTextFormat(const TString& fileName, - const EParseFromTextFormatOptions options = {}, IOutputStream* warningStream = nullptr) { +T ParseFromTextFormat(const TString& fileName, + const EParseFromTextFormatOptions options = {}, IOutputStream* warningStream = nullptr) { T message; ParseFromTextFormat(fileName, message, options, warningStream); return message; @@ -92,8 +92,8 @@ static T ParseFromTextFormat(const TString& fileName, // @see `ParseFromTextFormat` // NOTE: will read `in` till the end. template <typename T> -static T ParseFromTextFormat(IInputStream& in, const EParseFromTextFormatOptions options = {}, - IOutputStream* warningStream = nullptr) { +T ParseFromTextFormat(IInputStream& in, const EParseFromTextFormatOptions options = {}, + IOutputStream* warningStream = nullptr) { T message; ParseFromTextFormat(in, message, options, warningStream); return message; @@ -120,8 +120,8 @@ bool TryMergeFromTextFormat(IInputStream& in, NProtoBuf::Message& m, // @see `MergeFromTextFormat` template <typename T> -static T MergeFromTextFormat(const TString& fileName, - const EParseFromTextFormatOptions options = {}) { +T MergeFromTextFormat(const TString& fileName, + const EParseFromTextFormatOptions options = {}) { T message; MergeFromTextFormat(fileName, message, options); return message; @@ -130,8 +130,8 @@ static T MergeFromTextFormat(const TString& fileName, // @see `MergeFromTextFormat` // NOTE: will read `in` till the end. template <typename T> -static T MergeFromTextFormat(IInputStream& in, - const EParseFromTextFormatOptions options = {}) { +T MergeFromTextFormat(IInputStream& in, + const EParseFromTextFormatOptions options = {}) { T message; MergeFromTextFormat(in, message, options); return message; |
