Fix static analysis issues
[platform/core/base/bundle.git] / parcel / parcel.cc
index 2c3e13f..705fa9b 100644 (file)
@@ -28,7 +28,7 @@ Parcel::Impl::Impl(Parcel* parent, bool big_endian)
     : 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);
@@ -129,10 +129,10 @@ Parcel::Parcel(const void* buf, uint32_t size, bool big_endian)
   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_;
@@ -147,7 +147,8 @@ Parcel& Parcel::operator = (const Parcel& p) {
   return *this;
 }
 
-Parcel::Parcel(Parcel&& p) noexcept {
+Parcel::Parcel(Parcel&& p) noexcept
+    : impl_(new Impl(this)) {
   impl_ = std::move(p.impl_);
   impl_->parent_ = this;
 }