From 228872a5c68938c56eb9d4ecd2413865b5277fe1 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Tue, 28 May 2013 15:26:44 -0700 Subject: Fixes to compile on GCC 4.2, as shipped with XCode. --- upb/google/bridge.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'upb/google') 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: -- cgit v1.2.3