Fix C++ Generator 52/265552/3
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 22 Oct 2021 02:01:04 +0000 (11:01 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 22 Oct 2021 02:03:47 +0000 (11:03 +0900)
The default 'virtual' destructors are added to remove build warning messages.
If the package uses the non-virtual-dtor option, the build warnings are occurred.

Change-Id: I58f7845eca0808d9532a3e70e9712adac2bc87da
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
idlc/gen/cpp_stub_header_gen_cb.h

index 0b321b7..4648c3c 100644 (file)
@@ -42,6 +42,8 @@ R"__cpp_cb(
    public:
     class Factory {
      public:
+      virtual ~Factory() = default;
+
       /// <summary>
       /// The method for making service instances
       /// </summary>
@@ -152,6 +154,7 @@ const char CB_JOB[] = R"__cls_job(class Job {
  public:
   class IEvent {
    public:
+    virtual ~IEvent() = default;
     virtual void Run() = 0;
   };