return CAPMGR_ERROR_INVALID_PARAMETER;
try {
- struct capmgr_device_s* clone = new struct capmgr_device_s;
+ struct capmgr_device_s* clone = new struct capmgr_device_s();
clone->device_id = device->device_id;
clone->model_name = device->model_name;
return CAPMGR_ERROR_INVALID_PARAMETER;
try {
- struct capmgr_app_control_s* control = new struct capmgr_app_control_s;
+ struct capmgr_app_control_s* control = new struct capmgr_app_control_s();
control->b = bundle_create();
if (!control->b) {
delete control;
return CAPMGR_ERROR_INVALID_PARAMETER;
try {
- struct capmgr_app_control_s* clone = new struct capmgr_app_control_s;
+ struct capmgr_app_control_s* clone = new struct capmgr_app_control_s();
int ret = capmgr_device_clone(app_control->device, &clone->device);
if (ret != CAPMGR_ERROR_NONE) {
g_variant_iter_free(iter);
struct cbdata* cbdata = reinterpret_cast<struct cbdata*>(user_data);
- struct capmgr_app_control_s* reply = new struct capmgr_app_control_s;
+ struct capmgr_app_control_s* reply = new struct capmgr_app_control_s();
reply->b = bundle_decode(data, len);
if (!reply->b) {
LOG(ERROR) << "Invalid bundle data!";
return r;
}
- struct cbdata* cbdata = new struct cbdata;
+ struct cbdata* cbdata = new struct cbdata();
cbdata->request = clone;
cbdata->cb = cb;
cbdata->user_data = user_data;
}
// will be freed at MethodCallback()
- struct cbdata* cbdata = new struct cbdata;
+ struct cbdata* cbdata = new struct cbdata();
cbdata->cb = cb;
cbdata->user_data = user_data;