-
Notifications
You must be signed in to change notification settings - Fork 179
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
[core] Aligned return types of ecal_core.h and ecal_logging.h #1867
Conversation
There was a problem hiding this 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
@@ -103,16 +103,16 @@ const char* ecal_getdate() | |||
int ecal_initialize(const char* unit_name_) | |||
{ | |||
std::string unit_name = (unit_name_ != nullptr) ? std::string(unit_name_) : std::string(""); | |||
return(eCAL::Initialize(unit_name)); | |||
return static_cast<int>(!eCAL::Initialize(unit_name)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: variable 'unit_name' of type 'std::string' (aka 'basic_string') can be declared 'const' [misc-const-correctness]
return static_cast<int>(!eCAL::Initialize(unit_name)); | |
std::string const unit_name = (unit_name_ != nullptr) ? std::string(unit_name_) : std::string(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Refers to issue #1832.