- Add default initializer at constructor.
- Remove unused variable.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
return false;
}
std::string db_path = GetDBPath();
- int flag = 0;
int ret = 0;
if (op_type_ == OPERATION_TYPE_READ)
ret = __open_read_db(db_path.c_str(), &db_, SQLITE_OPEN_READONLY);
}
PkgInfoParcelable::PkgInfoParcelable()
- : AbstractParcelable(0, ParcelableType::PkgInfo) {}
+ : AbstractParcelable(0, ParcelableType::PkgInfo), write_type_(WriteType::None) {}
PkgInfoParcelable::PkgInfoParcelable(uid_t uid, std::vector<package_x *>&& pkg_list, WriteType write_type)
: AbstractParcelable(uid, ParcelableType::PkgInfo), pkg_list_(std::move(pkg_list)), write_type_(write_type) {}