From ffeac0613822eea9bb065020eb8ea3019eb16571 Mon Sep 17 00:00:00 2001 From: Anas Khabali Date: Thu, 15 Sep 2022 15:42:37 +0200 Subject: [PATCH] fix compilation error: unqualified call to 'std::move' --- AVSCommon/Utils/src/WorkerThread.cpp | 2 +- AVSGatewayManager/src/AuthRefreshedObserver.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AVSCommon/Utils/src/WorkerThread.cpp b/AVSCommon/Utils/src/WorkerThread.cpp index e82640b7b7..8718bd4a0e 100644 --- a/AVSCommon/Utils/src/WorkerThread.cpp +++ b/AVSCommon/Utils/src/WorkerThread.cpp @@ -56,7 +56,7 @@ void WorkerThread::cancel() { void WorkerThread::run(std::function workFunc) { std::lock_guard lock(m_mutex); m_cancel = false; - m_workerFunc = move(workFunc); + m_workerFunc = std::move(workFunc); m_workReady.notify_one(); } diff --git a/AVSGatewayManager/src/AuthRefreshedObserver.cpp b/AVSGatewayManager/src/AuthRefreshedObserver.cpp index 7136e2968e..426ef82c05 100644 --- a/AVSGatewayManager/src/AuthRefreshedObserver.cpp +++ b/AVSGatewayManager/src/AuthRefreshedObserver.cpp @@ -39,7 +39,7 @@ static const string TAG("AuthRefreshedObserver"); AuthRefreshedObserver::AuthRefreshedObserver(function afterAuthRefreshedCallback) : m_state{State::UNINITIALIZED}, - m_afterAuthRefreshedCallback{move(afterAuthRefreshedCallback)} { + m_afterAuthRefreshedCallback{std::move(afterAuthRefreshedCallback)} { } shared_ptr alexaClientSDK::avsGatewayManager::AuthRefreshedObserver::create(