Skip to content

Commit

Permalink
aslp-cpp: also fix initialisation order wawrning
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Dec 26, 2024
1 parent 83721db commit 3320c6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aslp-cpp/include/aslp-cpp/aslp-cpp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class aslp_connection
class aslp_client
{
private:
const std::string server_addr;
pid_t server_pid;
const std::string server_addr;
int server_port;
void shutdown();

Expand All @@ -47,8 +47,8 @@ class aslp_client
*/
aslp_client(pid_t pid, std::string addr, int port)
: server_pid(pid)
, server_port(port)
, server_addr(std::move(addr))
, server_port(port)
{
}

Expand Down

0 comments on commit 3320c6c

Please sign in to comment.