Fix build break issues 62/282162/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 28 Sep 2022 01:10:28 +0000 (01:10 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 28 Sep 2022 01:10:28 +0000 (01:10 +0000)
This patch fixes the build break issues. Currently, this package has
problems about 'invalid application of 'sizeof' to incomplete type'.

Change-Id: Id7d1b14f4d53a6c3db183b5ec088f18ec5108825
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
component_based/base/application_base.cc
component_based/base/application_base.h
component_based/base/component.cc
component_based/base/component.h
component_based/base/frame_component.cc
component_based/base/frame_component.h
component_based/base/service_component.cc
component_based/base/service_component.h

index d2072b68c7648b273489f43ef5c35510880e3b56..68e70c08c62448cf4a62d16d82bdf2e02f5f726f 100644 (file)
@@ -279,9 +279,11 @@ void ApplicationBase::OnAuxMessage(int type, void* event) {
 }
 
 ApplicationBase::ApplicationBase()
-  : impl_(new Impl(this)) {
+    : impl_(new Impl(this)) {
 }
 
+ApplicationBase::~ApplicationBase() {}
+
 std::string ApplicationBase::GetApplicationID() {
   return impl_->GetApplicationID();
 }
index be0d56e7f8484bbb68df1d4b79195f39dbefd483..2741465d87648e0fd6a885844660745b7cf880bb 100644 (file)
@@ -35,7 +35,7 @@ namespace component_based {
 class EXPORT_API ApplicationBase : public tizen_cpp::AppCoreMultiWindowBase {
  public:
   ApplicationBase();
-  virtual ~ApplicationBase() = default;
+  virtual ~ApplicationBase();
 
   virtual std::map<std::string, std::unique_ptr<Component::FactoryBase>>
       OnCreateFactoryMap() = 0;
index d70228a1b0fb7efbb31393bfc79032a5d3f9b0b3..2d4c16717873792266929149091fcb9c30e1b278 100644 (file)
@@ -275,11 +275,15 @@ void Component::SetContent(tizen_base::Bundle content) {
   impl_->content_mgr_->SetContent(std::move(content));
 }
 
-Component::Component(std::string comp_id, std::string inst_id, AppCoreMultiWindowBase* app)
-  : AppCoreMultiWindowBase::Context(std::move(comp_id), std::move(inst_id), app),
-  impl_(new Impl(this)) {
+Component::Component(std::string comp_id, std::string inst_id,
+    AppCoreMultiWindowBase* app)
+    : AppCoreMultiWindowBase::Context(std::move(comp_id),
+        std::move(inst_id), app),
+      impl_(new Impl(this)) {
 }
 
+Component::~Component() {}
+
 void Component::Finish() {
   auto* app = GetApp();
   auto* my_app = dynamic_cast<ApplicationBase*>(app);
index 1056cb4712276b6eeb414f655dd1326447a5c01b..8ec0f633657137009d2c622e96d9f5f89d5ae962 100644 (file)
@@ -59,7 +59,7 @@ class EXPORT_API Component : public tizen_cpp::AppCoreMultiWindowBase::Context,
 
   Component(std::string comp_id, std::string inst_id,
       tizen_cpp::AppCoreMultiWindowBase* app);
-  virtual ~Component() = default;
+  virtual ~Component();
 
   virtual void OnDestroy();
   void OnCreate() override;
index 4013914d8bb4dc9e4f721464912294c49ee76df2..eb49a61844aa78ab2507a33085f5c889a0f1a81c 100644 (file)
@@ -31,6 +31,8 @@ FrameComponent::FrameComponent(std::string comp_id, std::string inst_id,
     : Component::Component(std::move(comp_id), std::move(inst_id), app) {
 }
 
+FrameComponent::~FrameComponent() {}
+
 FrameComponent::DisplayStatus FrameComponent::GetDisplayStatus() const {
   app_display_state_e state;
   int r = app_get_display_state(&state);
index e14f1f84d32c96160d0d74dac43417edd427e1a4..911d4b36e826c880203c257b76cb9f3de9521adb 100644 (file)
@@ -38,7 +38,7 @@ class EXPORT_API FrameComponent : public Component {
 
   FrameComponent(std::string comp_id, std::string inst_id,
       tizen_cpp::AppCoreMultiWindowBase* app);
-  virtual ~FrameComponent() = default;
+  virtual ~FrameComponent();
 
   DisplayStatus GetDisplayStatus() const;
   const IWindow* GetWindow() const;
index 3f2725d3cfadab2fe918fa9a2fd6bb6cc630576a..eeb913fbee413c4e21d42296c70db504f1003c32 100644 (file)
@@ -27,6 +27,8 @@ ServiceComponent::ServiceComponent(std::string comp_id, std::string inst_id,
   : Component::Component(std::move(comp_id), std::move(inst_id), app) {
 }
 
+ServiceComponent::~ServiceComponent() {}
+
 void ServiceComponent::OnStart(AppControl control, bool restarted) {
   Component::OnStart(control, restarted);
   tizen_base::Bundle content = GetContent();
index 667f9949f971ff1593f7eddb672fb9d846fb18b7..c714150331189a1594d18ae06db3d1a44be833c7 100644 (file)
@@ -31,7 +31,7 @@ class EXPORT_API ServiceComponent : public Component {
  public:
   ServiceComponent(std::string comp_id, std::string inst_id,
       tizen_cpp::AppCoreMultiWindowBase* app);
-  virtual ~ServiceComponent() = default;
+  virtual ~ServiceComponent();
 
   virtual void OnStartCommand(AppControl app_control, bool restarted);