Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup service client api #1848

Closed
wants to merge 2 commits into from
Closed

Conversation

rex-schilasky
Copy link
Contributor

@rex-schilasky rex-schilasky commented Dec 9, 2024

Description

Minor changes on new service client API to keep it symmetrical to new service server API #1849.

m_created removed
@rex-schilasky rex-schilasky added the cherry-pick-to-NONE Don't cherry-pick these changes label Dec 9, 2024
@rex-schilasky rex-schilasky changed the title client api cleanup cleanup client api Dec 9, 2024
@rex-schilasky rex-schilasky changed the title cleanup client api cleanup service client api Dec 9, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@@ -133,7 +129,8 @@ namespace eCAL

bool CServiceClientImpl::Call(const std::string& method_name_, const std::string& request_, int timeout_, ServiceResponseVecT* service_response_vec_)
{
if (!m_created || !service_response_vec_) return false;
if (m_service_client_impl == nullptr) return false;
if (!service_response_vec_) return false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: implicit conversion 'ServiceResponseVecT *' (aka 'vector *') -> 'bool' [readability-implicit-bool-conversion]

Suggested change
if (!service_response_vec_) return false;
if (service_response_vec_ == nullptr) return false;

@rex-schilasky rex-schilasky marked this pull request as draft December 10, 2024 08:26
@rex-schilasky rex-schilasky deleted the feature/client-api-cleanup branch December 11, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-to-NONE Don't cherry-pick these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant