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