From 1e475147928f2ee2d97c748df2adc3c3fcabebdc Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 25 Mar 2015 23:35:09 +0100 Subject: [PATCH] Removing range-based for loop. --- src/compiler/cpp_plugin.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/compiler/cpp_plugin.cc b/src/compiler/cpp_plugin.cc index 534abdeed0f..57f25a1f75f 100644 --- a/src/compiler/cpp_plugin.cc +++ b/src/compiler/cpp_plugin.cc @@ -63,13 +63,15 @@ class CppGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator { if (!parameter.empty()) { std::vector parameters_list = grpc_generator::tokenize(parameter, ","); - for (auto ¶meter_string: parameters_list) { + for (auto parameter_string = parameters_list.begin(); + parameter_string != parameters_list.end(); + parameter_string++) { std::vector param = - grpc_generator::tokenize(parameter_string, "="); + grpc_generator::tokenize(*parameter_string, "="); if (param[0] == "services_namespace") { generator_parameters.services_namespace = param[1]; } else { - *error = grpc::string("Unknown parameter: ") + parameter_string; + *error = grpc::string("Unknown parameter: ") + *parameter_string; return false; } }