Skip to content

Commit

Permalink
missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed May 17, 2024
1 parent 61e0fd8 commit 0981c97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion comm_tcp_socket_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class comm_tcp_socket_client: public comm
comm_tcp_socket_client(const std::string & host, const int port);
virtual ~comm_tcp_socket_client();

std::string get_identifier() const override { host + format(":%d", port) + " (client)"; }
std::string get_identifier() const override { return host + format(":%d", port) + " (client)"; }

bool is_connected() override;

Expand Down
2 changes: 1 addition & 1 deletion comm_tcp_socket_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class comm_tcp_socket_server: public comm
comm_tcp_socket_server(const int port);
virtual ~comm_tcp_socket_server();

std::string get_identifier() const override { format(":%d", port) + " (server)"; }
std::string get_identifier() const override { return format(":%d", port) + " (server)"; }

bool is_connected() override;

Expand Down

0 comments on commit 0981c97

Please sign in to comment.