Skip to content

Commit

Permalink
templates: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Apr 21, 2022
1 parent 4969dd3 commit 32b2554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/plugin_impl_cpp/file.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace mavsdk {
{% if is_server %}
{{ plugin_name.upper_camel_case }}Impl::{{ plugin_name.upper_camel_case }}Impl(std::shared_ptr<ServerComponent> server_component) : ServerPluginImplBase(server_component)
{
_server_component_impl.register_plugin(this);
_server_component_impl->register_plugin(this);
}
{% else %}
{{ plugin_name.upper_camel_case }}Impl::{{ plugin_name.upper_camel_case }}Impl(System& system) : PluginImplBase(system)
Expand All @@ -22,7 +22,7 @@ namespace mavsdk {
{{ plugin_name.upper_camel_case }}Impl::~{{ plugin_name.upper_camel_case }}Impl()
{
{% if is_server %}
_server_component_impl.unregister_plugin(this);
_server_component_impl->unregister_plugin(this);
{% else %}
_parent->unregister_plugin(this);
{% endif %}
Expand Down

0 comments on commit 32b2554

Please sign in to comment.