|
|
@ -50,8 +50,13 @@ namespace { |
|
|
|
// instantiate the UnknownFieldSet dynamically only when required.
|
|
|
|
// instantiate the UnknownFieldSet dynamically only when required.
|
|
|
|
UnknownFieldSet* default_unknown_field_set_instance_ = NULL; |
|
|
|
UnknownFieldSet* default_unknown_field_set_instance_ = NULL; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void DeleteDefaultUnknownFieldSet() { |
|
|
|
|
|
|
|
delete default_unknown_field_set_instance_; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void InitDefaultUnknownFieldSet() { |
|
|
|
void InitDefaultUnknownFieldSet() { |
|
|
|
default_unknown_field_set_instance_ = new UnknownFieldSet(); |
|
|
|
default_unknown_field_set_instance_ = new UnknownFieldSet(); |
|
|
|
|
|
|
|
internal::OnShutdown(&DeleteDefaultUnknownFieldSet); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
GOOGLE_PROTOBUF_DECLARE_ONCE(default_unknown_field_set_once_init_); |
|
|
|
GOOGLE_PROTOBUF_DECLARE_ONCE(default_unknown_field_set_once_init_); |
|
|
|