aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/source_context.pb.cc
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2017-08-03 11:13:25 -0700
committerGravatar Jisi Liu <jisi.liu@gmail.com>2017-08-03 11:13:25 -0700
commit4cbbf33b773fb95aa339ee50517fd375f5120ffe (patch)
tree7b747f7af11853481922d327fc15de93f6d9b154 /src/google/protobuf/source_context.pb.cc
parent778178479626b0e5b4de0701103a1bb0a067702d (diff)
Fix invalid offsetof warning.
Use composition instead of inheritance for oneof default.
Diffstat (limited to 'src/google/protobuf/source_context.pb.cc')
-rw-r--r--src/google/protobuf/source_context.pb.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/google/protobuf/source_context.pb.cc b/src/google/protobuf/source_context.pb.cc
index effe0a43..5d990772 100644
--- a/src/google/protobuf/source_context.pb.cc
+++ b/src/google/protobuf/source_context.pb.cc
@@ -19,7 +19,10 @@
namespace google {
namespace protobuf {
-class SourceContextDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SourceContext> {
+class SourceContextDefaultTypeInternal {
+public:
+ ::google::protobuf::internal::ExplicitlyConstructed<SourceContext>
+ _instance;
} _SourceContext_default_instance_;
namespace protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto {
@@ -87,7 +90,7 @@ void TableStruct::InitDefaultsImpl() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
::google::protobuf::internal::InitProtobufDefaults();
- _SourceContext_default_instance_.DefaultConstruct();
+ _SourceContext_default_instance_._instance.DefaultConstruct();
::google::protobuf::internal::OnShutdownDestroyMessage(
&_SourceContext_default_instance_);}