diff options
author | Josh Haberman <jhaberman@gmail.com> | 2013-05-28 15:26:44 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2013-05-28 15:26:44 -0700 |
commit | 228872a5c68938c56eb9d4ecd2413865b5277fe1 (patch) | |
tree | c603c149e99b437fab018877d29289c0a0ff7aeb /upb/google | |
parent | bada1e94f472e7507a97e7565369841b3d25c9b0 (diff) |
Fixes to compile on GCC 4.2, as shipped with XCode.
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: |