summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-04-07 18:53:12 +0200
committerlouiz’ <louiz@louiz.org>2017-04-07 18:53:12 +0200
commitccb4ee098f0416ab47a46650705dba6495e8bec7 (patch)
treea309d09af17cd0d49a768660232bfaa9df100a57 /src/network
parent5402a256d1f0ebbeafa32d250d000cf38fe748fb (diff)
downloadbiboumi-ccb4ee098f0416ab47a46650705dba6495e8bec7.tar.gz
biboumi-ccb4ee098f0416ab47a46650705dba6495e8bec7.tar.bz2
biboumi-ccb4ee098f0416ab47a46650705dba6495e8bec7.tar.xz
biboumi-ccb4ee098f0416ab47a46650705dba6495e8bec7.zip
Apply all the clang-tidy misc-* fixes
Diffstat (limited to 'src/network')
-rw-r--r--src/network/credentials_manager.cpp2
-rw-r--r--src/network/tcp_socket_handler.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/network/credentials_manager.cpp b/src/network/credentials_manager.cpp
index f9f8c94..0908a2f 100644
--- a/src/network/credentials_manager.cpp
+++ b/src/network/credentials_manager.cpp
@@ -98,7 +98,7 @@ bool BasicCredentialsManager::try_to_open_one_ca_bundle(const std::vector<std::s
// because the certificate is signed by an issuer that was ignored.
try {
Botan::X509_Certificate cert(bundle);
- BasicCredentialsManager::certificate_store.add_certificate(std::move(cert));
+ BasicCredentialsManager::certificate_store.add_certificate(cert);
} catch (const Botan::Decoding_Error& error) {
continue;
}
diff --git a/src/network/tcp_socket_handler.cpp b/src/network/tcp_socket_handler.cpp
index b5e5db1..1bb8bf3 100644
--- a/src/network/tcp_socket_handler.cpp
+++ b/src/network/tcp_socket_handler.cpp
@@ -42,7 +42,6 @@ namespace
using namespace std::string_literals;
using namespace std::chrono_literals;
-namespace ph = std::placeholders;
TCPSocketHandler::TCPSocketHandler(std::shared_ptr<Poller>& poller):
SocketHandler(poller, -1),