Skip to content

Commit

Permalink
clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
rex-schilasky committed Jan 12, 2025
1 parent 93880d0 commit 231ceee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions ecal/core/src/ecal_descgate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ namespace eCAL
{
for (const auto& method : sample_.service.methods)
{
SDataTypeInformation request_datatype = GetDataTypeInformation(method.req_datatype, method.req_type, method.req_desc);
SDataTypeInformation response_datatype = GetDataTypeInformation(method.resp_datatype, method.resp_type, method.resp_desc);
const SDataTypeInformation request_datatype = GetDataTypeInformation(method.req_datatype, method.req_type, method.req_desc);
const SDataTypeInformation response_datatype = GetDataTypeInformation(method.resp_datatype, method.resp_type, method.resp_desc);

ApplyServiceDescription(m_service_info_map, sample_.identifier, sample_.service.sname, method.mname, request_datatype, response_datatype);
}
Expand All @@ -191,8 +191,8 @@ namespace eCAL
case bct_reg_client:
for (const auto& method : sample_.client.methods)
{
SDataTypeInformation request_datatype = GetDataTypeInformation(method.req_datatype, method.req_type, method.req_desc);
SDataTypeInformation response_datatype = GetDataTypeInformation(method.resp_datatype, method.resp_type, method.resp_desc);
const SDataTypeInformation request_datatype = GetDataTypeInformation(method.req_datatype, method.req_type, method.req_desc);
const SDataTypeInformation response_datatype = GetDataTypeInformation(method.resp_datatype, method.resp_type, method.resp_desc);

ApplyServiceDescription(m_client_info_map, sample_.identifier, sample_.client.sname, method.mname, request_datatype, response_datatype);
}
Expand Down Expand Up @@ -326,7 +326,7 @@ namespace eCAL
}
}

SDataTypeInformation CDescGate::GetDataTypeInformation(const SDataTypeInformation& datatype_info_, const std::string& legacy_type_, const std::string& legacy_desc_) const
SDataTypeInformation CDescGate::GetDataTypeInformation(const SDataTypeInformation& datatype_info_, const std::string& legacy_type_, const std::string& legacy_desc_)
{
SDataTypeInformation datatype_info;

Expand Down
2 changes: 1 addition & 1 deletion ecal/core/src/ecal_descgate.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ namespace eCAL
const Registration::SampleIdentifier& service_id_,
const std::string& service_name_);

SDataTypeInformation GetDataTypeInformation(const SDataTypeInformation& datatype_info_, const std::string& legacy_type_, const std::string& legacy_desc_) const;
static SDataTypeInformation GetDataTypeInformation(const SDataTypeInformation& datatype_info_, const std::string& legacy_type_, const std::string& legacy_desc_);
Registration::CallbackToken CreateToken();

// internal quality topic info publisher/subscriber maps
Expand Down
2 changes: 1 addition & 1 deletion ecal/core/src/service/ecal_service_client_v5_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ namespace eCAL
};

// Call the method asynchronously using the new API
bool success = m_service_client_impl->CallWithCallbackAsync(method_name_, request_, callback);
const bool success = m_service_client_impl->CallWithCallbackAsync(method_name_, request_, callback);
Logging::Log(log_level_debug1, "v5::CServiceClientImpl: Async call to method: " + method_name_ + " completed with success: " + std::to_string(success));
return success;
}
Expand Down
2 changes: 1 addition & 1 deletion ecal/core/src/service/ecal_service_server_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ namespace eCAL
// execute method (outside lock guard)
const std::string& request_s = request.request;
std::string response_s;
SMethodInfo method_info{
const SMethodInfo method_info{
method.method.mname,
method.method.req_datatype,
method.method.resp_datatype
Expand Down

0 comments on commit 231ceee

Please sign in to comment.