util::GetCmdStr(util::EditableEditPreview)) == 0) {
int editable_id;
int selected_idx;
- char* context = NULL;
+ char* context = nullptr;
if (sender_name_.compare(sender_name) != 0) {
LOGE("invalid sender_name %s", sender_name.c_str());
editable_id);
unique_ptr<Bundle> ctx_ptr;
- if (context != NULL) {
- std::string ctx_str = std::string(context);
+ std::string ctx_str = std::string(context);
+ if (!ctx_str.empty()) {
ctx_ptr = std::unique_ptr<Bundle>(new (std::nothrow) Bundle(ctx_str));
if (ctx_ptr.get() == nullptr) {
- LOGE("Out of memory");
+ LOGE("Fail to create bundle");
return;
}
}
+
for (auto& i : ed_list_) {
if (i.get()->GetEditableId() == editable_id) {
i.get()->SetState(IEditable::OnGoing);