Commit d84d0ca1 authored by Feng Xiao's avatar Feng Xiao

Fix data member declaration order.

parent a29a9c5d
...@@ -64,6 +64,7 @@ ProtoWriter::ProtoWriter(TypeResolver* type_resolver, ...@@ -64,6 +64,7 @@ ProtoWriter::ProtoWriter(TypeResolver* type_resolver,
typeinfo_(TypeInfo::NewTypeInfo(type_resolver)), typeinfo_(TypeInfo::NewTypeInfo(type_resolver)),
own_typeinfo_(true), own_typeinfo_(true),
done_(false), done_(false),
ignore_unknown_fields_(false),
element_(NULL), element_(NULL),
size_insert_(), size_insert_(),
output_(output), output_(output),
...@@ -71,7 +72,6 @@ ProtoWriter::ProtoWriter(TypeResolver* type_resolver, ...@@ -71,7 +72,6 @@ ProtoWriter::ProtoWriter(TypeResolver* type_resolver,
adapter_(&buffer_), adapter_(&buffer_),
stream_(new CodedOutputStream(&adapter_)), stream_(new CodedOutputStream(&adapter_)),
listener_(listener), listener_(listener),
ignore_unknown_fields_(false),
invalid_depth_(0), invalid_depth_(0),
tracker_(new ObjectLocationTracker()) {} tracker_(new ObjectLocationTracker()) {}
...@@ -82,6 +82,7 @@ ProtoWriter::ProtoWriter(const TypeInfo* typeinfo, ...@@ -82,6 +82,7 @@ ProtoWriter::ProtoWriter(const TypeInfo* typeinfo,
typeinfo_(typeinfo), typeinfo_(typeinfo),
own_typeinfo_(false), own_typeinfo_(false),
done_(false), done_(false),
ignore_unknown_fields_(false),
element_(NULL), element_(NULL),
size_insert_(), size_insert_(),
output_(output), output_(output),
...@@ -89,7 +90,6 @@ ProtoWriter::ProtoWriter(const TypeInfo* typeinfo, ...@@ -89,7 +90,6 @@ ProtoWriter::ProtoWriter(const TypeInfo* typeinfo,
adapter_(&buffer_), adapter_(&buffer_),
stream_(new CodedOutputStream(&adapter_)), stream_(new CodedOutputStream(&adapter_)),
listener_(listener), listener_(listener),
ignore_unknown_fields_(false),
invalid_depth_(0), invalid_depth_(0),
tracker_(new ObjectLocationTracker()) {} tracker_(new ObjectLocationTracker()) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment