diff options
author | Nicolas Noble <nnoble@google.com> | 2015-01-15 16:36:13 -0800 |
---|---|---|
committer | Nicolas Noble <nnoble@google.com> | 2015-01-15 17:33:09 -0800 |
commit | f5c5d80968a466ceb999fe51cb33e6dc871b762e (patch) | |
tree | 150ca7649270dd6f041018c96eb002bf518bd260 /src/compiler/ruby_generator_map-inl.h | |
parent | 07c7c680e89e28444d1dad9718c98a81419ede64 (diff) |
Removing "using namespace std" everywhere.
Diffstat (limited to 'src/compiler/ruby_generator_map-inl.h')
-rw-r--r-- | src/compiler/ruby_generator_map-inl.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/compiler/ruby_generator_map-inl.h b/src/compiler/ruby_generator_map-inl.h index fa86fbb956..a49650a2f7 100644 --- a/src/compiler/ruby_generator_map-inl.h +++ b/src/compiler/ruby_generator_map-inl.h @@ -48,17 +48,18 @@ namespace grpc_ruby_generator { // Converts an initializer list of the form { key0, value0, key1, value1, ... } // into a map of key* to value*. Is merely a readability helper for later code. -inline map<string, string> ListToDict(const initializer_list<string>& values) { +inline std::map<std::string, std::string> ListToDict( + const initializer_list<std::string>& values) { if (values.size() % 2 != 0) { // MOE: insert std::cerr << "Not every 'key' has a value in `values`." // << std::endl; } - map<string, string> value_map; + std::map<std::string, std::string> value_map; auto value_iter = values.begin(); for (unsigned i = 0; i < values.size() / 2; ++i) { - string key = *value_iter; + std::string key = *value_iter; ++value_iter; - string value = *value_iter; + std::string value = *value_iter; value_map[key] = value; ++value_iter; } |