diff options
author | louiz’ <louiz@louiz.org> | 2017-04-07 19:01:49 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-04-07 19:01:49 +0200 |
commit | be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea (patch) | |
tree | 7b3c18d8c0b6a1b0f5c3a56a44cb7ed3b2ff2739 /src/network | |
parent | b82a14f20effad351cd2b1f344d526202ef11caf (diff) | |
download | biboumi-be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea.tar.gz biboumi-be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea.tar.bz2 biboumi-be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea.tar.xz biboumi-be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea.zip |
Apply all the clang-tidy performance-* fixes
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/credentials_manager.cpp | 2 | ||||
-rw-r--r-- | src/network/credentials_manager.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/credentials_manager.cpp b/src/network/credentials_manager.cpp index 0908a2f..ea76627 100644 --- a/src/network/credentials_manager.cpp +++ b/src/network/credentials_manager.cpp @@ -44,7 +44,7 @@ const std::string& BasicCredentialsManager::get_trusted_fingerprint() const void check_tls_certificate(const std::vector<Botan::X509_Certificate>& certs, const std::string& hostname, const std::string& trusted_fingerprint, - std::exception_ptr exc) + const std::exception_ptr& exc) { if (!trusted_fingerprint.empty() && !certs.empty() && diff --git a/src/network/credentials_manager.hpp b/src/network/credentials_manager.hpp index c463ad4..e7c247d 100644 --- a/src/network/credentials_manager.hpp +++ b/src/network/credentials_manager.hpp @@ -19,7 +19,7 @@ class TCPSocketHandler; */ void check_tls_certificate(const std::vector<Botan::X509_Certificate>& certs, const std::string& hostname, const std::string& trusted_fingerprint, - std::exception_ptr exc); + const std::exception_ptr& exc); class BasicCredentialsManager: public Botan::Credentials_Manager { |