summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-04-07 19:01:49 +0200
committerlouiz’ <louiz@louiz.org>2017-04-07 19:01:49 +0200
commitbe9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea (patch)
tree7b3c18d8c0b6a1b0f5c3a56a44cb7ed3b2ff2739 /src/network
parentb82a14f20effad351cd2b1f344d526202ef11caf (diff)
downloadbiboumi-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.cpp2
-rw-r--r--src/network/credentials_manager.hpp2
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
{