Index: third_party/protobuf/src/google/protobuf/compiler/code_generator.cc |
diff --git a/third_party/protobuf/src/google/protobuf/compiler/code_generator.cc b/third_party/protobuf/src/google/protobuf/compiler/code_generator.cc |
index 0039b00a78e9184bf999e26d97893e7e83abb7b5..455c239a936bd9cec724ab65e85092b743fa1070 100644 |
--- a/third_party/protobuf/src/google/protobuf/compiler/code_generator.cc |
+++ b/third_party/protobuf/src/google/protobuf/compiler/code_generator.cc |
@@ -1,6 +1,6 @@ |
// Protocol Buffers - Google's data interchange format |
// Copyright 2008 Google Inc. All rights reserved. |
-// https://developers.google.com/protocol-buffers/ |
+// http://code.google.com/p/protobuf/ |
// |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
@@ -44,11 +44,6 @@ namespace compiler { |
CodeGenerator::~CodeGenerator() {} |
GeneratorContext::~GeneratorContext() {} |
-io::ZeroCopyOutputStream* |
-GeneratorContext::OpenForAppend(const string& filename) { |
- return NULL; |
-} |
- |
io::ZeroCopyOutputStream* GeneratorContext::OpenForInsert( |
const string& filename, const string& insertion_point) { |
GOOGLE_LOG(FATAL) << "This GeneratorContext does not support insertion."; |
@@ -63,7 +58,8 @@ void GeneratorContext::ListParsedFiles( |
// Parses a set of comma-delimited name/value pairs. |
void ParseGeneratorParameter(const string& text, |
vector<pair<string, string> >* output) { |
- vector<string> parts = Split(text, ",", true); |
+ vector<string> parts; |
+ SplitStringUsing(text, ",", &parts); |
for (int i = 0; i < parts.size(); i++) { |
string::size_type equals_pos = parts[i].find_first_of('='); |