Change-Id: I95bd05dc4c1362f6d7f4c64a002e9de93353f1bb
LogDebug("Response: " << wauthn_error_to_string(request->getStatus()));
typename T::PubKeyCred *cred = NULL;
- std::thread worker([request, callbacks, cred]{cb_worker(request, callbacks, cred);});
+ std::thread worker([request, callbacks, cred]{cb_worker(std::move(request), callbacks, cred);});
worker.detach();
return WAUTHN_ERROR_NONE;
});
#include <dlfcn.h>
namespace WA {
- DLLoader::DLLoader(std::string path) : m_libraryPath(path)
+ DLLoader::DLLoader(std::string path) : m_libraryPath(std::move(path))
{
LogDebug("Loading library: " << m_libraryPath);
m_libraryHandle = dlopen(m_libraryPath.c_str(), RTLD_LAZY | RTLD_LOCAL);