From 32392ef307af770562a30a07c8b71717012b7df9 Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 3 Mar 2022 01:03:22 +0100 Subject: [PATCH] passphrase_cache: avoid copy --- src/passphrase_cache.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/passphrase_cache.hxx b/src/passphrase_cache.hxx index 1f993f7..710a457 100644 --- a/src/passphrase_cache.hxx +++ b/src/passphrase_cache.hxx @@ -12,7 +12,7 @@ namespace pEp { { PEP_STATUS status{ PEP_STATUS_OK }; - for_each_passphrase([&](std::string passphrase) { + for_each_passphrase([&](const std::string& passphrase) { status = ::config_passphrase(session, passphrase.c_str()); if (status) { return true;