Skip to content

Commit

Permalink
Clang-tidy suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
KerstinKeller committed Jul 26, 2024
1 parent 242d86d commit 6c00c31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace eCAL

if (IsProcessRegistration(unregister_sample))
{
auto& sample_process = sample_.process;
const auto& sample_process = sample_.process;
auto& unregister_sample_process = unregister_sample.process;
unregister_sample_process.hname = sample_process.hname;
unregister_sample_process.pid = sample_process.pid;
Expand All @@ -59,7 +59,7 @@ namespace eCAL

if (IsTopicRegistration(unregister_sample))
{
auto& sample_topic = sample_.topic;
const auto& sample_topic = sample_.topic;
auto& unregister_sample_topic = unregister_sample.topic;
unregister_sample_topic.hname = sample_topic.hname;
unregister_sample_topic.hgname = sample_topic.hgname;
Expand All @@ -72,7 +72,7 @@ namespace eCAL

if (unregister_sample.cmd_type == bct_unreg_service)
{
auto& sample_service = sample_.service;
const auto& sample_service = sample_.service;
auto& unregister_sample_service = unregister_sample.service;
unregister_sample_service.hname = sample_service.hname;
unregister_sample_service.pid = sample_service.pid;
Expand All @@ -85,7 +85,7 @@ namespace eCAL

if (unregister_sample.cmd_type == bct_unreg_client)
{
auto& sample_client = sample_.client;
const auto& sample_client = sample_.client;
auto& unregister_sample_client = unregister_sample.client;

unregister_sample_client.hname = sample_client.hname;
Expand Down
4 changes: 2 additions & 2 deletions ecal/core/src/serialization/ecal_struct_sample_registration.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ namespace eCAL
// Transport layer parameters for ecal udp multicast
struct LayerParUdpMC
{
bool operator==(const LayerParUdpMC&) const
bool operator==(const LayerParUdpMC& /*unused*/) const
{
return true;
}

bool operator<(const LayerParUdpMC&) const
bool operator<(const LayerParUdpMC& /*unused*/) const
{
return false;
}
Expand Down

0 comments on commit 6c00c31

Please sign in to comment.