From d9bf739b9adbb1eba018e5b8bbe6a7cc5d904958 Mon Sep 17 00:00:00 2001 From: "SukHyung, Kang" Date: Mon, 18 Mar 2019 13:54:03 +0900 Subject: Add action parameter to Base class for EntryItem and TextItem Change-Id: I0be1f385c2e71223c11cc710026c98dee41f656c Signed-off-by: SukHyung, Kang --- notification-ex/entry_item.cc | 4 ++-- notification-ex/text_item.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notification-ex/entry_item.cc b/notification-ex/entry_item.cc index 31c4caf..44c55b0 100644 --- a/notification-ex/entry_item.cc +++ b/notification-ex/entry_item.cc @@ -34,11 +34,11 @@ namespace notification { namespace item { EntryItem::EntryItem(std::shared_ptr action) - : AbstractItem(AbstractItem::Type::Entry), impl_(new Impl(this)) { + : AbstractItem(AbstractItem::Type::Entry, action), impl_(new Impl(this)) { } EntryItem::EntryItem(std::string id, std::shared_ptr action) - : AbstractItem(id, AbstractItem::Type::Entry), impl_(new Impl(this)) { + : AbstractItem(id, AbstractItem::Type::Entry, action), impl_(new Impl(this)) { } EntryItem::Impl::Impl(EntryItem* parent) diff --git a/notification-ex/text_item.cc b/notification-ex/text_item.cc index cced868..6b153cb 100644 --- a/notification-ex/text_item.cc +++ b/notification-ex/text_item.cc @@ -34,7 +34,7 @@ namespace notification { namespace item { TextItem::TextItem(std::string id, std::string text, std::string hyperlink, std::shared_ptr action) - : AbstractItem(id, AbstractItem::Type::Text), + : AbstractItem(id, AbstractItem::Type::Text, action), impl_(new Impl(this, text, hyperlink)) { } -- cgit v1.2.3