summaryrefslogtreecommitdiff
path: root/notification-ex/app_control_action.cc
diff options
context:
space:
mode:
Diffstat (limited to 'notification-ex/app_control_action.cc')
-rw-r--r--notification-ex/app_control_action.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/notification-ex/app_control_action.cc b/notification-ex/app_control_action.cc
index 2aa94b6..aef6ee4 100644
--- a/notification-ex/app_control_action.cc
+++ b/notification-ex/app_control_action.cc
@@ -30,6 +30,8 @@
#define LOG_TAG "NOTIFICATION_EX"
#define APPCONTROL_ACTION_KEY "__APPCONTROL_ACTION_KEY__"
+using namespace tizen_base;
+
namespace notification {
namespace item {
@@ -71,13 +73,13 @@ Bundle AppControlAction::Serialize() const {
app_control_export_as_bundle(impl_->control_, &control_b);
if (control_b == NULL) {
LOGE("failed to get bundle from app_control");
- return nullptr;
+ return {};
}
bundle_encode(control_b, &control_raw, &len);
if (len <= 0) {
LOGE("bundle encode failed");
- return nullptr;
+ return {};
}
b = AbstractAction::Serialize();