diff options
author | Yuchen Zeng <zyc@google.com> | 2016-09-12 11:18:26 -0700 |
---|---|---|
committer | Yuchen Zeng <zyc@google.com> | 2016-09-12 11:18:26 -0700 |
commit | 8d5f5e080b30efa9c93fdb6d73299f6b4b21d25a (patch) | |
tree | ed327f9095ffde409af88e5a66fb271ec52ceabd /test/cpp | |
parent | 3951f2e05b44643b5a55f25b3c9233b60c299e83 (diff) |
Fix portability issues
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/util/grpc_tool.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/util/grpc_tool.cc b/test/cpp/util/grpc_tool.cc index bc81f870d2..89bca5e42c 100644 --- a/test/cpp/util/grpc_tool.cc +++ b/test/cpp/util/grpc_tool.cc @@ -292,8 +292,8 @@ bool GrpcTool::ListServices(int argc, const char** argv, if (FLAGS_l) { output = DescribeServiceList(service_list, desc_pool); } else { - for (auto const& service = service_list.begin(); - service != service_list.end(); service++) { + for (auto it = service_list.begin(); it != service_list.end(); it++) { + auto const& service = *it; output.append(service); output.append("\n"); } |