Commit 28abf1bb authored by Kohei Yoshida's avatar Kohei Yoshida

Use virtual dtor for class inheritance with virtual methods.

parent 0915864b
Pipeline #51012592 passed with stage
in 3 minutes and 44 seconds
......@@ -41,6 +41,7 @@ public:
{
public:
virtual std::unique_ptr<iface::session_handler> create();
virtual ~session_handler_factory();
};
/**
......
......@@ -1035,6 +1035,8 @@ std::unique_ptr<iface::session_handler> model_context::session_handler_factory::
return std::unique_ptr<iface::session_handler>();
}
model_context::session_handler_factory::~session_handler_factory() {}
model_context::model_context() :
mp_impl(new model_context_impl(*this)) {}
......
......@@ -22,6 +22,8 @@ namespace ixion {
session_handler::factory::factory(const model_context& cxt) :
m_context(cxt), m_show_sheet_name(false) {}
session_handler::factory::~factory() {}
std::unique_ptr<iface::session_handler> session_handler::factory::create()
{
return ixion::make_unique<session_handler>(m_context, m_show_sheet_name);
......
......@@ -44,6 +44,7 @@ public:
bool m_show_sheet_name;
public:
factory(const model_context& cxt);
virtual ~factory() override;
virtual std::unique_ptr<iface::session_handler> create() override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment