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;