Skip to content

Commit

Permalink
grpc: replace std::pair<x,y>{} with std::make_pair()
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Szakacs <[email protected]>
  • Loading branch information
alltilla committed Oct 4, 2024
1 parent a31d8b9 commit 827a773
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions modules/grpc/common/grpc-dest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,18 @@ class DestDriver

void add_extra_channel_arg(std::string name, long value)
{
this->int_extra_channel_args.push_back(std::pair<std::string, long> {name, value});
this->int_extra_channel_args.push_back(std::make_pair(name, value));
}

void add_extra_channel_arg(std::string name, std::string value)
{
this->string_extra_channel_args.push_back(std::pair<std::string, std::string> {name, value});
this->string_extra_channel_args.push_back(std::make_pair(name, value));
}

void add_header(std::string name, std::string value)
{
std::transform(name.begin(), name.end(), name.begin(), ::tolower);
this->headers.push_back(std::pair<std::string, std::string> {name, value});
this->headers.push_back(std::make_pair(name, value));
}

GrpcClientCredentialsBuilderW *get_credentials_builder_wrapper()
Expand Down
4 changes: 2 additions & 2 deletions modules/grpc/common/grpc-source.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ class SourceDriver

void add_extra_channel_arg(std::string name, long value)
{
this->int_extra_channel_args.push_back(std::pair<std::string, long> {name, value});
this->int_extra_channel_args.push_back(std::make_pair(name, value));
}

void add_extra_channel_arg(std::string name, std::string value)
{
this->string_extra_channel_args.push_back(std::pair<std::string, std::string> {name, value});
this->string_extra_channel_args.push_back(std::make_pair(name, value));
}

GrpcServerCredentialsBuilderW *get_credentials_builder_wrapper()
Expand Down

0 comments on commit 827a773

Please sign in to comment.