diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-04-29 21:50:13 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-04-29 21:50:13 +0200 |
commit | f6e6b8905be010d7329316cea4546900ad8a2d19 (patch) | |
tree | c27ff5b83d11c5631742ffc945e3f887fbca0f54 /src/network | |
parent | 594bac1e841588aef66efc208a295e08273aec32 (diff) | |
download | biboumi-f6e6b8905be010d7329316cea4546900ad8a2d19.tar.gz biboumi-f6e6b8905be010d7329316cea4546900ad8a2d19.tar.bz2 biboumi-f6e6b8905be010d7329316cea4546900ad8a2d19.tar.xz biboumi-f6e6b8905be010d7329316cea4546900ad8a2d19.zip |
Use C++14 string_literals
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/socket_handler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/socket_handler.cpp b/src/network/socket_handler.cpp index 546b1b4..f1b70be 100644 --- a/src/network/socket_handler.cpp +++ b/src/network/socket_handler.cpp @@ -42,7 +42,7 @@ void SocketHandler::init_socket() const int existing_flags = ::fcntl(this->socket, F_GETFL, 0); if ((existing_flags == -1) || (::fcntl(this->socket, F_SETFL, existing_flags | O_NONBLOCK) == -1)) - throw std::runtime_error(std::string("Could not initialize socket: ") + strerror(errno)); + throw std::runtime_error("Could not initialize socket: "s + strerror(errno)); } void SocketHandler::connect(const std::string& address, const std::string& port) @@ -70,7 +70,7 @@ void SocketHandler::connect(const std::string& address, const std::string& port) if (res != 0) { - log_warning(std::string("getaddrinfo failed: ") + gai_strerror(res)); + log_warning("getaddrinfo failed: "s + gai_strerror(res)); this->close(); this->on_connection_failed(gai_strerror(res)); return ; |