From 7eb2d5676bbacc85baaa6ce938b648e950e53668 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Fri, 22 Oct 2021 11:01:04 +0900 Subject: [PATCH] Fix C++ Generator 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 --- idlc/gen/cpp_stub_header_gen_cb.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/idlc/gen/cpp_stub_header_gen_cb.h b/idlc/gen/cpp_stub_header_gen_cb.h index 0b321b7..4648c3c 100644 --- a/idlc/gen/cpp_stub_header_gen_cb.h +++ b/idlc/gen/cpp_stub_header_gen_cb.h @@ -42,6 +42,8 @@ R"__cpp_cb( public: class Factory { public: + virtual ~Factory() = default; + /// /// The method for making service instances /// @@ -152,6 +154,7 @@ const char CB_JOB[] = R"__cls_job(class Job { public: class IEvent { public: + virtual ~IEvent() = default; virtual void Run() = 0; }; -- 2.7.4