From b11e11e1e4a17636bb76527c9d2403af9830b685 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sun, 28 Jun 2020 21:03:35 +0200 Subject: [PATCH] ... --- passphrase_cache.cc | 2 +- passphrase_cache.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/passphrase_cache.cc b/passphrase_cache.cc index de7f2ad..d6a7242 100644 --- a/passphrase_cache.cc +++ b/passphrase_cache.cc @@ -82,7 +82,7 @@ namespace pEp { return _which->passphrase.c_str(); } - PEP_STATUS PassphraseCache::messageToSend(PassphraseCache&& cache, PEP_SESSION session) + PEP_STATUS PassphraseCache::messageToSend(PassphraseCache& cache, PEP_SESSION session) { static pEp::PassphraseCache _copy; static bool new_copy = true; diff --git a/passphrase_cache.hh b/passphrase_cache.hh index 7985072..b7390ad 100644 --- a/passphrase_cache.hh +++ b/passphrase_cache.hh @@ -59,7 +59,7 @@ namespace pEp { // this function is using latest_passphrase() to test one passphrase after the // other until the cache is exhausted - static PEP_STATUS messageToSend(PassphraseCache&& cache, PEP_SESSION session); + static PEP_STATUS messageToSend(PassphraseCache& cache, PEP_SESSION session); // for each passphrase call the callee until it returns true for a // matching passphrase or no passphrases are left