diff options
author | heretic <heretic@yandex-team.ru> | 2022-02-10 16:45:46 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:46 +0300 |
commit | 81eddc8c0b55990194e112b02d127b87d54164a9 (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /contrib/libs/grpc/test/cpp/util/byte_buffer_proto_helper.cc | |
parent | 397cbe258b9e064f49c4ca575279f02f39fef76e (diff) | |
download | ydb-81eddc8c0b55990194e112b02d127b87d54164a9.tar.gz |
Restoring authorship annotation for <heretic@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/grpc/test/cpp/util/byte_buffer_proto_helper.cc')
-rw-r--r-- | contrib/libs/grpc/test/cpp/util/byte_buffer_proto_helper.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libs/grpc/test/cpp/util/byte_buffer_proto_helper.cc b/contrib/libs/grpc/test/cpp/util/byte_buffer_proto_helper.cc index cad822c1f9..5971b53075 100644 --- a/contrib/libs/grpc/test/cpp/util/byte_buffer_proto_helper.cc +++ b/contrib/libs/grpc/test/cpp/util/byte_buffer_proto_helper.cc @@ -24,7 +24,7 @@ namespace testing { bool ParseFromByteBuffer(ByteBuffer* buffer, grpc::protobuf::Message* message) { std::vector<Slice> slices; (void)buffer->Dump(&slices); - TString buf; + TString buf; buf.reserve(buffer->Length()); for (auto s = slices.begin(); s != slices.end(); s++) { buf.append(reinterpret_cast<const char*>(s->begin()), s->size()); @@ -34,7 +34,7 @@ bool ParseFromByteBuffer(ByteBuffer* buffer, grpc::protobuf::Message* message) { std::unique_ptr<ByteBuffer> SerializeToByteBuffer( grpc::protobuf::Message* message) { - TString buf; + TString buf; message->SerializeToString(&buf); Slice slice(buf); return std::unique_ptr<ByteBuffer>(new ByteBuffer(&slice, 1)); @@ -42,7 +42,7 @@ std::unique_ptr<ByteBuffer> SerializeToByteBuffer( bool SerializeToByteBufferInPlace(grpc::protobuf::Message* message, ByteBuffer* buffer) { - TString buf; + TString buf; if (!message->SerializeToString(&buf)) { return false; } |