add initializer for function variables accepted/tizen/unified/20210923.012133 submit/tizen/20210922.225014
authorYoungjae Shin <yj99.shin@samsung.com>
Wed, 22 Sep 2021 22:36:29 +0000 (07:36 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Wed, 22 Sep 2021 22:49:23 +0000 (07:49 +0900)
Change-Id: I5aa8e22f3d50b53f1509d3f54cf57711e032a477

subprojects/libbeyond/include/beyond/private/event_loop_private.h
subprojects/libbeyond/src/event_loop.cc
subprojects/libbeyond/src/event_loop_impl.cc
subprojects/libbeyond/src/event_loop_impl.h

index b5644f6..2001f61 100644 (file)
@@ -28,6 +28,7 @@ namespace beyond {
 class API EventLoop : public EventObjectBaseInterface {
 public:
     struct HandlerObject {
+        HandlerObject();
         EventObjectBaseInterface *eventObject;
         int type;
         void *data;
index 940c11d..cc9b3f8 100644 (file)
@@ -40,4 +40,12 @@ EventLoop *EventLoop::Create(bool thread, bool signal)
     return EventLoop::impl::Create(thread, signal);
 }
 
+beyond::EventLoop::HandlerObject::HandlerObject()
+    : eventObject(nullptr)
+    , type(0)
+    , data(nullptr)
+    , eventHandler(nullptr)
+    , cancelHandler(nullptr)
+{
+}
 } // namespace beyond
index cb75780..3ba5757 100644 (file)
@@ -827,4 +827,12 @@ int EventLoop::impl::GetHandle(void) const
     return handle;
 }
 
+EventLoop::impl::Event::Event()
+    : loop(nullptr)
+    , type(0)
+    , handler(nullptr)
+    , callbackData(nullptr)
+{
+}
+
 } // namespace beyond
index efd2953..bc528cf 100644 (file)
@@ -69,6 +69,7 @@ private:
     int spfd[2];
 
     struct Event {
+        Event();
         EventLoop *loop;
         int type;
         std::function<void(EventLoop *, void *)> handler;