Index: third_party/protobuf/src/google/protobuf/compiler/java/java_extension.cc |
diff --git a/third_party/protobuf/src/google/protobuf/compiler/java/java_extension.cc b/third_party/protobuf/src/google/protobuf/compiler/java/java_extension.cc |
index 46b5faaa50945d9766bdbe6ae0d0878b7150abb8..cb237bf6d564d3124ce3a65d9dcd2aa81d88675d 100644 |
--- a/third_party/protobuf/src/google/protobuf/compiler/java/java_extension.cc |
+++ b/third_party/protobuf/src/google/protobuf/compiler/java/java_extension.cc |
@@ -61,12 +61,10 @@ ImmutableExtensionGenerator::ImmutableExtensionGenerator( |
ImmutableExtensionGenerator::~ImmutableExtensionGenerator() {} |
// Initializes the vars referenced in the generated code templates. |
-void ExtensionGenerator::InitTemplateVars(const FieldDescriptor* descriptor, |
- const string& scope, |
- bool immutable, |
- ClassNameResolver* name_resolver, |
- map<string, string>* vars_pointer) { |
- map<string, string> &vars = *vars_pointer; |
+void ExtensionGenerator::InitTemplateVars( |
+ const FieldDescriptor* descriptor, const string& scope, bool immutable, |
+ ClassNameResolver* name_resolver, std::map<string, string>* vars_pointer) { |
+ std::map<string, string> &vars = *vars_pointer; |
vars["scope"] = scope; |
vars["name"] = UnderscoresToCamelCase(descriptor); |
vars["containing_type"] = |
@@ -110,7 +108,7 @@ void ExtensionGenerator::InitTemplateVars(const FieldDescriptor* descriptor, |
} |
void ImmutableExtensionGenerator::Generate(io::Printer* printer) { |
- map<string, string> vars; |
+ std::map<string, string> vars; |
const bool kUseImmutableNames = true; |
InitTemplateVars(descriptor_, scope_, kUseImmutableNames, name_resolver_, |
&vars); |