Index: third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_generator.cc |
diff --git a/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_generator.cc b/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_generator.cc |
index d67d350470b8520df4f2319defc4555fa1a94254..bb84e2ab46db7c7401ced8fe053e43f8d5711428 100644 |
--- a/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_generator.cc |
+++ b/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_generator.cc |
@@ -53,7 +53,7 @@ CppGenerator::~CppGenerator() {} |
bool CppGenerator::Generate(const FileDescriptor* file, |
const string& parameter, |
- OutputDirectory* output_directory, |
+ GeneratorContext* generator_context, |
string* error) const { |
vector<pair<string, string> > options; |
ParseGeneratorParameter(parameter, &options); |
@@ -100,7 +100,7 @@ bool CppGenerator::Generate(const FileDescriptor* file, |
// Generate header. |
{ |
scoped_ptr<io::ZeroCopyOutputStream> output( |
- output_directory->Open(basename + ".h")); |
+ generator_context->Open(basename + ".h")); |
io::Printer printer(output.get(), '$'); |
file_generator.GenerateHeader(&printer); |
} |
@@ -108,7 +108,7 @@ bool CppGenerator::Generate(const FileDescriptor* file, |
// Generate cc file. |
{ |
scoped_ptr<io::ZeroCopyOutputStream> output( |
- output_directory->Open(basename + ".cc")); |
+ generator_context->Open(basename + ".cc")); |
io::Printer printer(output.get(), '$'); |
file_generator.GenerateSource(&printer); |
} |