summaryrefslogtreecommitdiff
path: root/notification-ex/app_control_action.cc
diff options
context:
space:
mode:
authorMyungKi Lee <mk5004.lee@samsung.com>2019-04-24 07:28:00 +0000
committerMyungKi Lee <mk5004.lee@samsung.com>2019-07-08 09:49:12 +0000
commit59f7de30dd5575f090fe2b0153df7a47bcc5168b (patch)
treec898f288c54a095b1f45458d9980209a0a5ee19c /notification-ex/app_control_action.cc
parent510c94a36e214f82b24c2ad291312f0bf83893d7 (diff)
downloadnotification-59f7de30dd5575f090fe2b0153df7a47bcc5168b.tar.gz
notification-59f7de30dd5575f090fe2b0153df7a47bcc5168b.tar.bz2
notification-59f7de30dd5575f090fe2b0153df7a47bcc5168b.zip
Revert "Revert "Use tizen_base::Bundle""
This reverts commit 3166055125c36292b44b323ad5897eeb120e2397. Change-Id: Icaede3decb1dd3896ad077a6a20a5e65f3d4bf80 Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
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();