Skip to content

Commit

Permalink
Fixed many clang tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Aug 2, 2023
1 parent a3b4670 commit 6068b7d
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 62 deletions.
1 change: 1 addition & 0 deletions ecal/service/src/client_session_impl_v0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ namespace eCAL

ClientSessionV0::~ClientSessionV0()
{
ClientSessionV0::stop();
ECAL_SERVICE_LOG_DEBUG_VERBOSE(logger_, "Deleted");
}

Expand Down
3 changes: 2 additions & 1 deletion ecal/service/src/client_session_impl_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ namespace eCAL

ClientSessionV1::~ClientSessionV1()
{
ClientSessionV1::stop();
ECAL_SERVICE_LOG_DEBUG_VERBOSE(logger_, "Deleted");
}

Expand Down Expand Up @@ -151,7 +152,7 @@ namespace eCAL
{
asio::error_code socket_option_ec;
{
std::lock_guard<std::mutex> socket_lock (me->socket_mutex_);
const std::lock_guard<std::mutex> socket_lock(me->socket_mutex_);
me->socket_.set_option(asio::ip::tcp::no_delay(true), socket_option_ec);
}
if (socket_option_ec)
Expand Down
2 changes: 1 addition & 1 deletion ecal/service/src/server_session_impl_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace eCAL
public:
asio::ip::tcp::socket& socket() { return socket_; }
virtual void start() = 0;
virtual void stop() = 0;
virtual void stop() = 0;

virtual eCAL::service::State get_state() const = 0;

Expand Down
1 change: 1 addition & 0 deletions ecal/service/src/server_session_impl_v0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ namespace eCAL
// Destructor
ServerSessionV0::~ServerSessionV0()
{
ServerSessionV0::stop();
ECAL_SERVICE_LOG_DEBUG_VERBOSE(logger_, "Server Session Deleted");
}

Expand Down
2 changes: 1 addition & 1 deletion ecal/service/src/server_session_impl_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace eCAL
// Destructor
ServerSessionV1::~ServerSessionV1()
{
stop();
ServerSessionV1::stop();
ECAL_SERVICE_LOG_DEBUG_VERBOSE(logger_, "Server Session Deleted");
}

Expand Down
Loading

0 comments on commit 6068b7d

Please sign in to comment.