: 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;
}
static const int CHECKSUM_LENGTH = 32;
-Bundle::Bundle() = default;
-
Bundle::Bundle(unsigned char* raw, int size, bool base64) {
int ret;
if (base64)
THROW(ret);
}
-Bundle::~Bundle() = default;
-
Bundle::Bundle(const Bundle& b) {
map_ = b.map_;
list_ = b.list_;
if (iter == map_.end())
THROW(BUNDLE_ERROR_KEY_NOT_AVAILABLE);
- int ret = iter->second->SetValue(index, std::move(value));
+ int ret = iter->second->SetValue(index, value);
if (ret != BUNDLE_ERROR_NONE)
THROW(ret);
}
std::unique_ptr<gchar, decltype(g_free)*> base64_bytes_ptr(base64_bytes,
g_free);
- argv.push_back(std::move(base64_bytes));
+ argv.push_back(base64_bytes);
}
return argv;
ByteArray = BUNDLE_TYPE_BYTE_ARRAY,
};
- Bundle();
+ Bundle() = default;
Bundle(unsigned char* raw, int size, bool base64 = true);
Bundle(int argc, char** argv);
- virtual ~Bundle();
+ virtual ~Bundle() = default;
Bundle(const Bundle& b);
Bundle& operator = (const Bundle& b);
Json::Json(Bundle* b) : b_(b) {
}
-Json::~Json() = default;
-
Bundle* Json::ToBundle() {
if (json_.empty())
return nullptr;
public:
explicit Json(std::string json);
explicit Json(Bundle* b);
- virtual ~Json();
+ virtual ~Json() = default;
Bundle* ToBundle();
std::string ToString();
THROW(ret);
}
-KeyInfo::~KeyInfo() = default;
-
KeyInfo::KeyInfo(const KeyInfo& key_info) {
type_ = key_info.type_;
key_ = key_info.key_;
KeyInfo(int type, std::string key,
std::vector<std::vector<unsigned char>> values);
explicit KeyInfo(std::vector<unsigned char> encoded_bytes);
- virtual ~KeyInfo();
+ virtual ~KeyInfo() = default;
KeyInfo(const KeyInfo& key_info);
KeyInfo& operator = (const KeyInfo& key_info);