aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/server/channel_argument_option.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpp/server/channel_argument_option.cc')
-rw-r--r--src/cpp/server/channel_argument_option.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cpp/server/channel_argument_option.cc b/src/cpp/server/channel_argument_option.cc
index 0d3a0dc25b..dcad2531d5 100644
--- a/src/cpp/server/channel_argument_option.cc
+++ b/src/cpp/server/channel_argument_option.cc
@@ -21,17 +21,17 @@
namespace grpc {
std::unique_ptr<ServerBuilderOption> MakeChannelArgumentOption(
- const grpc::string &name, const grpc::string &value) {
+ const grpc::string& name, const grpc::string& value) {
class StringOption final : public ServerBuilderOption {
public:
- StringOption(const grpc::string &name, const grpc::string &value)
+ StringOption(const grpc::string& name, const grpc::string& value)
: name_(name), value_(value) {}
- virtual void UpdateArguments(ChannelArguments *args) override {
+ virtual void UpdateArguments(ChannelArguments* args) override {
args->SetString(name_, value_);
}
virtual void UpdatePlugins(
- std::vector<std::unique_ptr<ServerBuilderPlugin>> *plugins) override {}
+ std::vector<std::unique_ptr<ServerBuilderPlugin>>* plugins) override {}
private:
const grpc::string name_;
@@ -41,17 +41,17 @@ std::unique_ptr<ServerBuilderOption> MakeChannelArgumentOption(
}
std::unique_ptr<ServerBuilderOption> MakeChannelArgumentOption(
- const grpc::string &name, int value) {
+ const grpc::string& name, int value) {
class IntOption final : public ServerBuilderOption {
public:
- IntOption(const grpc::string &name, int value)
+ IntOption(const grpc::string& name, int value)
: name_(name), value_(value) {}
- virtual void UpdateArguments(ChannelArguments *args) override {
+ virtual void UpdateArguments(ChannelArguments* args) override {
args->SetInt(name_, value_);
}
virtual void UpdatePlugins(
- std::vector<std::unique_ptr<ServerBuilderPlugin>> *plugins) override {}
+ std::vector<std::unique_ptr<ServerBuilderPlugin>>* plugins) override {}
private:
const grpc::string name_;