Index: third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.cc |
diff --git a/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.cc b/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.cc |
index 9c0911ac9690f102b69c56d76804aed3f4ed0480..0b58b981ec5b57f72e9052d7d310d6b61ce534bd 100644 |
--- a/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.cc |
+++ b/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.cc |
@@ -53,7 +53,7 @@ void SetStringVariables(const FieldDescriptor* descriptor, |
(*variables)["default_length"] = |
SimpleItoa(descriptor->default_value_string().length()); |
(*variables)["default_variable"] = descriptor->default_value_string().empty() |
- ? "&::google::protobuf::internal::kEmptyString" |
+ ? "&::google::protobuf::internal::GetEmptyString()" |
: "_default_" + FieldName(descriptor) + "_"; |
(*variables)["pointer_type"] = |
descriptor->type() == FieldDescriptor::TYPE_BYTES ? "void" : "char"; |