diff options
Diffstat (limited to 'upb/google')
-rw-r--r-- | upb/google/bridge.cc | 4 |
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: |