: parent_(parent), big_endian_(big_endian) {
}
-Parcel::Impl::~Impl() = default;
+Parcel::Impl::~Impl() {}
void Parcel::Impl::Write(const void* buf, uint32_t size) {
auto* p = reinterpret_cast<const uint8_t*>(buf);
impl_->Write(buf, size);
}
-Parcel::~Parcel() = default;
+Parcel::~Parcel() {};
Parcel::Parcel(const Parcel& p)
- : impl_(new Impl(this)) {
+ : impl_(new Impl(this)) {
impl_->big_endian_ = p.impl_->big_endian_;
impl_->data_ = p.impl_->data_;
impl_->reader_ = p.impl_->reader_;
return *this;
}
-Parcel::Parcel(Parcel&& p) noexcept {
+Parcel::Parcel(Parcel&& p) noexcept
+ : impl_(new Impl(this)) {
impl_ = std::move(p.impl_);
impl_->parent_ = this;
}