diff options
author | yang-g <yangg@google.com> | 2015-08-12 11:46:26 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2015-08-12 11:46:26 -0700 |
commit | 37ce034dc162ede929999b0239d295e2d8bfd263 (patch) | |
tree | 158de25ec58012573da0896c2086b9bb263c6adb /src/cpp/client | |
parent | 0c034a01d12753a06a3dbbe202430ff0485ab978 (diff) |
add const
Diffstat (limited to 'src/cpp/client')
-rw-r--r-- | src/cpp/client/channel.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpp/client/channel.cc b/src/cpp/client/channel.cc index 93536ae367..1c2eecf786 100644 --- a/src/cpp/client/channel.cc +++ b/src/cpp/client/channel.cc @@ -61,9 +61,9 @@ Channel::~Channel() { grpc_channel_destroy(c_channel_); } Call Channel::CreateCall(const RpcMethod& method, ClientContext* context, CompletionQueue* cq) { - bool registered = method.channel_tag() && context->authority().empty(); + const bool kRegistered = method.channel_tag() && context->authority().empty(); grpc_call* c_call = NULL; - if (registered) { + if (kRegistered) { c_call = grpc_channel_create_registered_call( c_channel_, context->propagate_from_call_, context->propagation_options_.c_bitmask(), cq->cq(), |