Skip to content

Commit

Permalink
Make use of default argument in base method
Browse files Browse the repository at this point in the history
    * connectors/dds4ccm/impl/dds4ccm_event_connector_t.cpp:
    * connectors/dds4ccm/impl/dds4ccm_state_connector_t.cpp:
    * connectors/dds4ccm/impl/dds4ccm_subscriber_base_t.h:
  • Loading branch information
jwillemsen committed Sep 18, 2023
1 parent 9ae4ba7 commit 7a51901
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions connectors/dds4ccm/impl/dds4ccm_event_connector_t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ DDS_Event_Connector_T<CCM_TYPE, TOPIC_TYPE, TOPIC_SEQ_TYPE>::do_ccm_activate ()

this->pull_consumer_->activate (
event_strategy_type (this->context ()),
this->context ()->get_connection_pull_consumer_status (),
nullptr);
this->context ()->get_connection_pull_consumer_status ());
}
}

Expand Down
6 changes: 2 additions & 4 deletions connectors/dds4ccm/impl/dds4ccm_state_connector_t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,7 @@ DDS_State_Connector_T<CCM_TYPE, TOPIC_TYPE, TOPIC_SEQ_TYPE>::do_ccm_activate ()

this->passive_observer_->activate (
event_strategy_type (this->context ()),
this->context ()->get_connection_passive_observer_status (),
nullptr);
this->context ()->get_connection_passive_observer_status ());
}

if (this->pull_observer_)
Expand All @@ -514,8 +513,7 @@ DDS_State_Connector_T<CCM_TYPE, TOPIC_TYPE, TOPIC_SEQ_TYPE>::do_ccm_activate ()

this->pull_observer_->activate (
event_strategy_type (this->context ()),
this->context ()->get_connection_pull_observer_status (),
nullptr);
this->context ()->get_connection_pull_observer_status ());
}

if (this->push_observer_)
Expand Down
2 changes: 1 addition & 1 deletion connectors/dds4ccm/impl/dds4ccm_subscriber_base_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class DDS_Subscriber_Base_T
virtual void activate (
const typename CCM_TYPE::event_strategy_type &evs,
IDL::traits<CCM_DDS::PortStatusListener>::ref_type status,
IDL::traits<CORBA::Object>::ref_type);
IDL::traits<CORBA::Object>::ref_type = nullptr);

virtual void passivate ();

Expand Down

0 comments on commit 7a51901

Please sign in to comment.