summaryrefslogtreecommitdiff
path: root/upb/google/bridge.cc
diff options
context:
space:
mode:
Diffstat (limited to 'upb/google/bridge.cc')
-rw-r--r--upb/google/bridge.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/upb/google/bridge.cc b/upb/google/bridge.cc
index 97a91ea..9386427 100644
--- a/upb/google/bridge.cc
+++ b/upb/google/bridge.cc
@@ -131,8 +131,8 @@ FieldDef* AddFieldDef(const goog::Message& m, const goog::FieldDescriptor* f,
: upb::FieldDef::ConvertDescriptorType(f->type()));
if (weak_prototype) {
- const string& name = weak_prototype->GetDescriptor()->full_name();
- upb_f->set_subdef_name(name, &status);
+ upb_f->set_subdef_name(
+ weak_prototype->GetDescriptor()->full_name(), &status);
} else {
switch (upb_f->type()) {
case UPB_TYPE_INT32:
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback