diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-10-26 20:09:39 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-10-26 20:09:39 +0100 |
commit | 142516a69bb000ce80cbb6509d1f407438a94663 (patch) | |
tree | a2acfe00953a86a036f0bc81f221bbe8e557977f /louloulibs/network | |
parent | 0fcba76c793e7c0b1ccc09eaa85016caa11ca3f2 (diff) | |
download | biboumi-142516a69bb000ce80cbb6509d1f407438a94663.tar.gz biboumi-142516a69bb000ce80cbb6509d1f407438a94663.tar.bz2 biboumi-142516a69bb000ce80cbb6509d1f407438a94663.tar.xz biboumi-142516a69bb000ce80cbb6509d1f407438a94663.zip |
Fix some trivial issues reported by cppcheck
Diffstat (limited to 'louloulibs/network')
-rw-r--r-- | louloulibs/network/tcp_socket_handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/louloulibs/network/tcp_socket_handler.cpp b/louloulibs/network/tcp_socket_handler.cpp index 72abdcc..f2a2466 100644 --- a/louloulibs/network/tcp_socket_handler.cpp +++ b/louloulibs/network/tcp_socket_handler.cpp @@ -247,7 +247,7 @@ void TCPSocketHandler::on_send() struct msghdr msg{nullptr, 0, msg_iov, 0, nullptr, 0, 0}; - for (std::string& s: this->out_buf) + for (const std::string& s: this->out_buf) { // unconsting the content of s is ok, sendmsg will never modify it msg_iov[msg.msg_iovlen].iov_base = const_cast<char*>(s.data()); |